diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-25 10:36:50 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-25 10:38:37 +0000 |
| commit | a6da25ad0bbbd23d72c0043735af58aa68e59424 (patch) | |
| tree | a3e7d5bd5e40b2dd46f8599d5c39a28c7ce42fc7 /util/libreboot-utils/include/common.h | |
| parent | f7f1856969df44c47deca559a1b77b82d4f42cb3 (diff) | |
libreboot-utils: remove 1989 rand
added as an academic exercise, but pointless
in the year 2026.
or even the year 1989.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/include/common.h')
| -rw-r--r-- | util/libreboot-utils/include/common.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/util/libreboot-utils/include/common.h b/util/libreboot-utils/include/common.h index 97bbdf0c..0bab30de 100644 --- a/util/libreboot-utils/include/common.h +++ b/util/libreboot-utils/include/common.h @@ -26,7 +26,7 @@ #endif #if !defined(HAVE_GETRANDOM) #include <sys/syscall.h> -#if defined(SYS_getrandom) +#if !defined(SYS_getrandom) #define HAVE_GETRANDOM_SYSCALL 1 #endif #endif @@ -396,18 +396,12 @@ int dcat(const char *s, size_t n, unsigned short hextonum(char ch_s); size_t rlong(void); -#if !(defined(FALLBACK_RAND_1989) && \ - ((FALLBACK_RAND_1989) > 0)) #if defined(__linux__) #if defined(HAVE_GETRANDOM) || \ defined(HAVE_GETRANDOM_SYSCALL) int fallback_rand_getrandom(void *buf, size_t len); #endif #endif -#else -size_t fallback_rand_1989(void); -size_t entropy_jitter(void); -#endif /* Helper functions for command: dump */ |
