summaryrefslogtreecommitdiff
path: root/util/sbase/printenv.c
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-19 18:34:28 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-19 18:34:28 +0000
commitf8b07dba2932714507f7ead6b8464ba3157d84bd (patch)
tree3e16546c3827d7a18f5b14ec28217161eb0f01f2 /util/sbase/printenv.c
parent7c66a788bdfc8136a603eec6d805b75cc382b239 (diff)
util/nvmutil: rand: use getrandom on newer linux
we still fall back to the old /dev/urandom read on older linux, via runtime detection (ENOSYS). getrandom is better, because it guarantees entropy via blocking, and works even when /dev/urandom is unavailable. it has the same practical benefit as arc4random, which i use on bsd. linux can have arc4random, but not every linux libc has it, so it's better to use getrandom on linux. older linux will fall back to /dev/urandom Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/sbase/printenv.c')
0 files changed, 0 insertions, 0 deletions