diff options
author | Bodo Möller <bodo@openssl.org> | 1999-10-26 16:26:48 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 1999-10-26 16:26:48 +0000 |
commit | 62ac2938015939e2ef30f12295f0ee59ff79c11b (patch) | |
tree | 5920f95e7f43caa16f6e46dfb6a655a51db50cb9 /CHANGES | |
parent | c1e744b9125a883450c2239ec55ea606c618a5c0 (diff) |
Always hash the pid in the first iteration in ssleay_rand_bytes,
don't try to detect fork()s by looking at getpid().
The reason is that threads sharing the same memory can have different
PIDs; it's inefficient to run RAND_seed each time a different thread
calls RAND_bytes.
Diffstat (limited to 'CHANGES')
-rw-r--r-- | CHANGES | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -5,7 +5,7 @@ Changes between 0.9.4 and 0.9.5 [xx XXX 1999] *) Make crypto/rand/md_rand.c more robust: - - Detect fork() and assure unique random states. + - Assure unique random numbers after fork(). - Make sure that concurrent threads access the global counter and md serializably so that we never lose entropy in them or use exactly the same state in multiple threads. |