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:
Leah Rowe
2026-03-19 18:36:59 +00:00
parent f8b07dba29
commit 0229e84539

View File

@@ -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: