summaryrefslogtreecommitdiff
path: root/util/nvmutil/nvmutil.c
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-07 00:04:05 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-07 00:04:57 +0000
commit330b2da20c1253f83d822b169e03da250727b916 (patch)
tree2b8faaab4112fdc66bd9235dc88f9fa24f342d86 /util/nvmutil/nvmutil.c
parent58182b48c3356d8b8325c22bce0063445193babd (diff)
util/nvmutil: Shorten a comment
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/nvmutil.c')
-rw-r--r--util/nvmutil/nvmutil.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index 621541f3..3e1ac3c2 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -326,17 +326,9 @@ open_dev_urandom(void)
* Fall back to /dev/random on old platforms
* where /dev/urandom does not exist.
*
- * In general, we can assume that any system
- * that would have urandom, probably has the
- * other device (/dev/urandom).
- *
- * Given that on many modern systems, urandom
- * and random are essentially the same, this
- * also provides some fault-tolerance there,
- * while still ultimately being strict under
- * fallback conditions, thus:
+ * We must reset the error condition first,
+ * to prevent stale error status later.
*/
-
errno = 0;
rname = oldrandom;