util/mkhtemp: allow zero as a rand value

yes, zero is a valid response.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-25 11:13:56 +00:00
parent 7bff5712b4
commit 49cc239884

View File

@@ -89,9 +89,6 @@ rlong(void)
goto err; /* possibly unsupported by kernel */ goto err; /* possibly unsupported by kernel */
} }
if (rval == 0)
goto err;
off += (size_t)rc; off += (size_t)rc;
} }