projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Test: link drbgtest statically against libcrypto
[oweals/openssl.git]
/
crypto
/
rand
/
rand_lib.c
diff --git
a/crypto/rand/rand_lib.c
b/crypto/rand/rand_lib.c
index 4f1a1349004fdc3d65fef64552301a7d575bbaa0..277403ca12291916ec4d0cc9375249096560d7cc 100644
(file)
--- a/
crypto/rand/rand_lib.c
+++ b/
crypto/rand/rand_lib.c
@@
-363,7
+363,8
@@
void rand_cleanup_int(void)
*/
void RAND_keep_random_devices_open(int keep)
{
- rand_pool_keep_random_devices_open(keep);
+ if (RUN_ONCE(&rand_init, do_rand_init))
+ rand_pool_keep_random_devices_open(keep);
}
/*