diff options
author | Rich Salz <rsalz@openssl.org> | 2017-06-26 12:02:57 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2017-06-27 12:14:49 -0400 |
commit | f367ac2b2664df272aa1903c7650f0c64f539d28 (patch) | |
tree | 654388ca91eb1a89173546d83bc413322f706e8f /apps/app_rand.c | |
parent | c91ec013654e97ca1754db26bd2da62c8bbf7b47 (diff) |
Use randomness not entropy
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/3773)
Diffstat (limited to 'apps/app_rand.c')
-rw-r--r-- | apps/app_rand.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/app_rand.c b/apps/app_rand.c index 8a85cc9114..21445ac0f9 100644 --- a/apps/app_rand.c +++ b/apps/app_rand.c @@ -93,13 +93,14 @@ int app_RAND_write_file(const char *file) { char buffer[200]; - if (egdsocket || !seeded) + if (egdsocket || !seeded) { /* - * If we did not manage to read the seed file, we should not write a - * low-entropy seed file back -- it would suppress a crucial warning - * the next time we want to use it. + * If we didn't manage to read the seed file, don't write a + * file out -- it would suppress a crucial warning the next + * time we want to use it. */ return 0; + } if (file == NULL) file = RAND_file_name(buffer, sizeof buffer); |