mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-03-25 13:29:03 +02:00
util/nvmutil: remove arandom fallback on rand
openbsd 2.1 has arc4random, which we detect here. arandom was apparently added much later, so this is dead code. remove it. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -131,17 +131,6 @@ retry_urandom_read:
|
||||
O_RDONLY | O_BINARY | O_NOFOLLOW |
|
||||
O_CLOEXEC);
|
||||
|
||||
#ifdef __OpenBSD__
|
||||
/* TODO: dead code
|
||||
openbsd 2.1 had arc4random.
|
||||
arandam was introduced **later**
|
||||
*/
|
||||
if (fd < 0) /* old openbsd */
|
||||
fd = open("/dev/arandom",
|
||||
O_RDONLY | O_BINARY | O_NOFOLLOW |
|
||||
O_CLOEXEC);
|
||||
#endif
|
||||
|
||||
#ifdef PORTABLE_RAND_DEV
|
||||
#if (PORTABLE_RAND_DEV) > 0
|
||||
/* WARNING:
|
||||
|
||||
Reference in New Issue
Block a user