Fallback to arc4rand() in the LinuxKPI when read_random() returns
authorhselasky <hselasky@FreeBSD.org>
Tue, 7 Jun 2016 13:10:13 +0000 (13:10 +0000)
committerhselasky <hselasky@FreeBSD.org>
Tue, 7 Jun 2016 13:10:13 +0000 (13:10 +0000)
commit552a8ba1c7d9747793cc596231acaa577569499d
treec0ed342d6a7e362fd6932fe280e0c73153cfafde
parent707fd866b9274c3ac23bdcbe6da41f78cf5cba84
Fallback to arc4rand() in the LinuxKPI when read_random() returns
zero. This can happen for virtual machines.

MFC after: 1 week
Sponsored by: Mellanox Technologies
sys/compat/linuxkpi/common/include/linux/etherdevice.h
sys/compat/linuxkpi/common/include/linux/random.h