From 26c04a135133db5327fd5eb8b8c2e4457b814656 Mon Sep 17 00:00:00 2001 From: joshua Date: Wed, 9 Nov 2022 12:10:17 +0000 Subject: [PATCH] Remove unnecessary sizeof ok jsing@ tb@ --- regress/lib/libcrypto/rc4/rc4_test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/regress/lib/libcrypto/rc4/rc4_test.c b/regress/lib/libcrypto/rc4/rc4_test.c index 4f5ea62606e..fc4c65ff262 100644 --- a/regress/lib/libcrypto/rc4/rc4_test.c +++ b/regress/lib/libcrypto/rc4/rc4_test.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rc4_test.c,v 1.5 2022/09/12 04:26:38 tb Exp $ */ +/* $OpenBSD: rc4_test.c,v 1.6 2022/11/09 12:10:17 joshua Exp $ */ /* * Copyright (c) 2022 Joshua Sing * @@ -377,7 +377,7 @@ rc4_test(void) } for (j = 0; j < rt->len;) { - in_len = arc4random_uniform(sizeof(rt->len) / 2); + in_len = arc4random_uniform(rt->len / 2); if (in_len > rt->len - j) in_len = rt->len - j; @@ -423,7 +423,7 @@ rc4_test(void) } for (j = 0; j < rt->len;) { - in_len = arc4random_uniform(sizeof(rt->len) / 2); + in_len = arc4random_uniform(rt->len / 2); if (in_len > rt->len - j) in_len = rt->len - j; -- 2.20.1