rand_unix.c: don't discard entropy bytes from /dev/*random
authorDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Thu, 16 Aug 2018 19:34:37 +0000 (21:34 +0200)
committerDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Sun, 19 Aug 2018 10:44:05 +0000 (12:44 +0200)
commitcca996217802077fe74711310356124a492756a8
tree7a03cf074af64e9820c10475b0711dde9a166554
parent630ce41e836a756423c7d834fa2b4a0f8efec871
rand_unix.c: don't discard entropy bytes from /dev/*random

Don't discard partial reads from /dev/*random and retry instead.

Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6990)
crypto/rand/rand_unix.c