summaryrefslogtreecommitdiff
path: root/util/nvmutil/lib/io.c
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-19 19:55:27 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-19 20:01:57 +0000
commit3a0460607dbb66094a26231c3fdb23b27305294a (patch)
treea3efd6d977d7b397455464ba3a187b35b0dcce8d /util/nvmutil/lib/io.c
parent2c211d385eb3efdd184895cefb4e242593f8107e (diff)
util/nvmutil: better getrandom safety
err if buf NULL, len -1 also getrandom may return fewer bytes, so loop that too. why can't linux be like bsd? bsd is: arc4random_buf(buf, len); no checks needed. it never errs. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/lib/io.c')
0 files changed, 0 insertions, 0 deletions