| Age | Commit message (Collapse) | Author |
|
it supports arc4random since forever
Signed-off-by: Leah Rowe <leah@libreboot.org>
|
|
it's extremely unlikely that a 2nd call would
also fail. this is fine.
it mitigates DoS attacks (entropy exhaustion)
Signed-off-by: Leah Rowe <leah@libreboot.org>
|
|
Signed-off-by: Leah Rowe <leah@libreboot.org>
|
|
yes, zero is a valid response.
Signed-off-by: Leah Rowe <leah@libreboot.org>
|
|
only use the getrandom syscall on linux,
or arc4random.
the /dev/urandom fallback is removed, and
we use the syscall; failure is almost certainly
unlikely, but if it fails, we abort. this
provides therefore the same guarantee as
bsd arc4random, since it will never return
under fault conditions. it will only ever
return success, or abort.
nobody should be using /dev/urandom in 2026.
Signed-off-by: Leah Rowe <leah@libreboot.org>
|
|
added as an academic exercise, but pointless
in the year 2026.
or even the year 1989.
Signed-off-by: Leah Rowe <leah@libreboot.org>
|
|
Signed-off-by: Leah Rowe <leah@libreboot.org>
|