]> git.ipfire.org Git - thirdparty/openssl.git/commit
Make the predictable numbers start from 1
authorKurt Roeckx <kurt@roeckx.be>
Wed, 7 Dec 2016 22:05:16 +0000 (23:05 +0100)
committerKurt Roeckx <kurt@roeckx.be>
Thu, 8 Dec 2016 18:06:18 +0000 (19:06 +0100)
commite512840d7a691ec372453bcb5f42e00eec180b18
tree437c08a29129c351be51d7c48c6ca584c0602058
parent231f13370b52cdf52f286b8cadb0e61308841736
Make the predictable numbers start from 1

There is code that retries calling RAND_bytes() until it gets something
other than 0, which just hangs if we always return 0.

Reviewed-by: Rich Salz <rsalz@openssl.org>
GH: #2041
crypto/rand/md_rand.c