aboutsummaryrefslogtreecommitdiffstats
path: root/apps/rand.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/rand.c')
-rw-r--r--apps/rand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/rand.c b/apps/rand.c
index 96dcb7273a4d..eddb8af8d70a 100644
--- a/apps/rand.c
+++ b/apps/rand.c
@@ -198,7 +198,7 @@ int MAIN(int argc, char **argv)
chunk = num;
if (chunk > (int)sizeof(buf))
- chunk = sizeof buf;
+ chunk = sizeof(buf);
r = RAND_bytes(buf, chunk);
if (r <= 0)
goto err;