diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-19 18:34:28 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-26 06:59:42 +0000 |
| commit | a3e3cdc05779bc5070445b3aab522bc78f86272d (patch) | |
| tree | c7027b4514b2f197c096a33e2f6476ec1291c83d /util/dell-flash-unlock | |
| parent | bad5688ae979056e061c4297c7083b9e1c54eceb (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/dell-flash-unlock')
0 files changed, 0 insertions, 0 deletions
