]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Switch random_get_pseudo_bytes() shim to arc4rand().
authormav <mav@FreeBSD.org>
Sat, 10 Sep 2016 09:37:41 +0000 (09:37 +0000)
committermav <mav@FreeBSD.org>
Sat, 10 Sep 2016 09:37:41 +0000 (09:37 +0000)
commit2a468fb489b336bc23179915c4d286fe94f0f2f5
tree9517d522057ac18405b0cb8a422550bb125866f3
parent046b1626629dc2c45133e51446e865925c46b804
Switch random_get_pseudo_bytes() shim to arc4rand().

Our shim for Solaris random_get_bytes() uses read_random(), that looks
reasonable, since it guaranties reliably seeded random data.  On the other
side Solaris random_get_pseudo_bytes() does not provide this guarantie,
and its original Solaris implementation is equivalent to our arc4rand(),
using software crypto without stressing slower hardware RNG.
sys/cddl/compat/opensolaris/sys/random.h