diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-25 11:13:56 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-25 11:13:56 +0000 |
| commit | 49cc239884a5a73b43311a8b6f15b7b1709e46a7 (patch) | |
| tree | b45946ee00684e71675a4afa0825f1a5b62dfda6 /util/libreboot-utils | |
| parent | 7bff5712b4cf528b0b00649538545e66cc3a39ee (diff) | |
util/mkhtemp: allow zero as a rand value
yes, zero is a valid response.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils')
| -rw-r--r-- | util/libreboot-utils/lib/rand.c | 3 |
1 files changed, 0 insertions, 3 deletions
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; } |
