diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-19 18:36:59 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-19 18:36:59 +0000 |
| commit | 0229e845394ef8fe330b5d01b987a582f7604874 (patch) | |
| tree | 98aa5bb4afcd890f4b38dd146f82a09352ad4c38 /util | |
| parent | f8b07dba2932714507f7ead6b8464ba3157d84bd (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')
| -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: |
