3 ms·
RAND_status() can never return 0 in the new OpenBSD code. All of the OpenSSL PRNG has been removed, and arc4random_buf() is used instead. This means that this
by X-Istence 13y ago
RAND_status() can never return 0 in the new OpenBSD code. All of the OpenSSL PRNG has been removed, and arc4random_buf() is used instead.
This means that this particular piece of code could NEVER be hit because there is never a time that RAND_status() is going to return 0! i.e. This is unreachable code.
On top of that RAND_add() is a no-op that won't do anything, since there is no way to add "seed" to the PRNG ...
See this commit: http://freshbsd.org/commit/openbsd/58777eed1cff7c5b34cbc026278f730176a6dbc2 http://freshbsd.org/commit/openbsd/58777eed1cff7c5b34cbc0262...
- tptacek 13y agoYep, thanks. Makes sense.