diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-19 19:02:59 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-19 19:11:08 +0000 |
| commit | e55f7ea08157b24969ae31cde21c62264459eff0 (patch) | |
| tree | db838e534c6bcde42edf9bbbaf1566b683636d32 /util/nvmutil/include/common.h | |
| parent | 0229e845394ef8fe330b5d01b987a582f7604874 (diff) | |
util/nvmutil: re-add fallback timer rand
for 1989
enabled via ifdef. not enabled by default.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/include/common.h')
| -rw-r--r-- | util/nvmutil/include/common.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/util/nvmutil/include/common.h b/util/nvmutil/include/common.h index 0a3beeac..46fbcb38 100644 --- a/util/nvmutil/include/common.h +++ b/util/nvmutil/include/common.h @@ -337,12 +337,18 @@ void set_mac_nib(unsigned long mac_str_pos, unsigned long mac_byte_pos, unsigned long mac_nib_pos); unsigned short hextonum(char ch_s); unsigned long 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 +unsigned long fallback_rand_1989(void); +unsigned long entropy_jitter(void); +#endif void write_mac_part(unsigned long partnum); /* Helper functions for command: dump |
