From 49cc239884a5a73b43311a8b6f15b7b1709e46a7 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Wed, 25 Mar 2026 11:13:56 +0000 Subject: util/mkhtemp: allow zero as a rand value yes, zero is a valid response. Signed-off-by: Leah Rowe --- util/libreboot-utils/lib/rand.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'util/libreboot-utils/lib/rand.c') diff --git a/util/libreboot-utils/lib/rand.c b/util/libreboot-utils/lib/rand.c index ecf07142..2f88b420 100644 --- a/util/libreboot-utils/lib/rand.c +++ b/util/libreboot-utils/lib/rand.c @@ -89,9 +89,6 @@ rlong(void) goto err; /* possibly unsupported by kernel */ } - if (rval == 0) - goto err; - off += (size_t)rc; } -- cgit v1.2.1