-/* $OpenBSD: rc4_test.c,v 1.4 2022/09/07 21:17:32 tb Exp $ */
+/* $OpenBSD: rc4_test.c,v 1.5 2022/09/12 04:26:38 tb Exp $ */
/*
* Copyright (c) 2022 Joshua Sing <joshua@hypera.dev>
*
}
for (j = 0; j < rt->len;) {
- in_len = arc4random_uniform(sizeof(rt->len / 2));
+ in_len = arc4random_uniform(sizeof(rt->len) / 2);
if (in_len > rt->len - j)
in_len = rt->len - j;
}
for (j = 0; j < rt->len;) {
- in_len = arc4random_uniform(sizeof(rt->len / 2));
+ in_len = arc4random_uniform(sizeof(rt->len) / 2);
if (in_len > rt->len - j)
in_len = rt->len - j;