Always hash the pid in the first iteration in ssleay_rand_bytes,
authorBodo Möller <bodo@openssl.org>
Tue, 26 Oct 1999 16:26:48 +0000 (16:26 +0000)
committerBodo Möller <bodo@openssl.org>
Tue, 26 Oct 1999 16:26:48 +0000 (16:26 +0000)
commit62ac2938015939e2ef30f12295f0ee59ff79c11b
tree5920f95e7f43caa16f6e46dfb6a655a51db50cb9
parentc1e744b9125a883450c2239ec55ea606c618a5c0
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.
CHANGES
crypto/rand/md_rand.c