From 330b2da20c1253f83d822b169e03da250727b916 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 7 Mar 2026 00:04:05 +0000 Subject: util/nvmutil: Shorten a comment Signed-off-by: Leah Rowe --- util/nvmutil/nvmutil.c | 12 ++---------- 1 file 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; -- cgit v1.2.1