diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-19 18:36:59 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-26 06:59:42 +0000 |
| commit | 59b9215a97721bcbf7a6d40695465379d8a2348c (patch) | |
| tree | 5e71a162f6380d63f37a2c06df72ff692d4b4e44 /util/nvmutil/lib/num.c | |
| parent | a3e3cdc05779bc5070445b3aab522bc78f86272d (diff) | |
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>
Diffstat (limited to 'util/nvmutil/lib/num.c')
| -rw-r--r-- | util/nvmutil/lib/num.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/util/nvmutil/lib/num.c b/util/nvmutil/lib/num.c index 91b85e5b..3ef2ad6f 100644 --- a/util/nvmutil/lib/num.c +++ b/util/nvmutil/lib/num.c @@ -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: |
