summaryrefslogtreecommitdiff
path: root/src/lib/libssl/src/apps/rand.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/src/apps/rand.c')
-rw-r--r--src/lib/libssl/src/apps/rand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/src/apps/rand.c b/src/lib/libssl/src/apps/rand.c
index e23e84af82..fa35505c18 100644
--- a/src/lib/libssl/src/apps/rand.c
+++ b/src/lib/libssl/src/apps/rand.c
@@ -218,7 +218,7 @@ int MAIN(int argc, char **argv)
218 int chunk; 218 int chunk;
219 219
220 chunk = num; 220 chunk = num;
221 if (chunk > sizeof buf) 221 if (chunk > (int)sizeof(buf))
222 chunk = sizeof buf; 222 chunk = sizeof buf;
223 r = RAND_bytes(buf, chunk); 223 r = RAND_bytes(buf, chunk);
224 if (r <= 0) 224 if (r <= 0)
@@ -232,7 +232,7 @@ int MAIN(int argc, char **argv)
232 } 232 }
233 num -= chunk; 233 num -= chunk;
234 } 234 }
235 BIO_flush(out); 235 (void)BIO_flush(out);
236 236
237 app_RAND_write_file(NULL, bio_err); 237 app_RAND_write_file(NULL, bio_err);
238 ret = 0; 238 ret = 0;