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 | |
parent | c91ec013654e97ca1754db26bd2da62c8bbf7b47 (diff) | |
download | openssl-f367ac2b2664df272aa1903c7650f0c64f539d28.tar.gz |
Use randomness not entropy
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/3773)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_rand.c | 9 | ||||
-rw-r--r-- | apps/speed.c | 2 |
2 files changed, 6 insertions, 5 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); diff --git a/apps/speed.c b/apps/speed.c index c2787a0ecc..bd32786014 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -249,7 +249,7 @@ static double ecdh_results[EC_NUM][1]; #if !defined(OPENSSL_NO_DSA) || !defined(OPENSSL_NO_EC) static const char rnd_seed[] = - "string to make the random number generator think it has entropy"; + "string to make the random number generator think it has randomness"; #endif #ifdef SIGALRM |