Don't cheat: when only getting several bytes from each source, n is incremented
authorLutz Jänicke <jaenicke@openssl.org>
Tue, 9 Jan 2001 10:58:36 +0000 (10:58 +0000)
committerLutz Jänicke <jaenicke@openssl.org>
Tue, 9 Jan 2001 10:58:36 +0000 (10:58 +0000)
commit28e5428d5df083c6015be5abc88959ee2e662eb6
tree424ac6c4c5b1d4ae1148dfedf0787437f49a2dc2
parent3c914840520161d9ca121d38973a79b050916a8a
Don't cheat: when only getting several bytes from each source, n is incremented
correctly, but RAND_add(..,n) counts the increasing n several times.
Only RAND_add(..,n) once entropy collection is finished.
crypto/rand/rand_unix.c