summaryrefslogtreecommitdiff
path: root/util/libreboot-utils/lib/rand.c
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-26 01:45:58 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-26 06:59:42 +0000
commite151179d14876ecb808b2a077815fe7e3a312344 (patch)
treeb004bccfe156876a156cc6ef8e76cf05e886288f /util/libreboot-utils/lib/rand.c
parentc4ff47a8ed7fc30be4a1c0f9212bca09ed757e3d (diff)
cleanup
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/lib/rand.c')
-rw-r--r--util/libreboot-utils/lib/rand.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/util/libreboot-utils/lib/rand.c b/util/libreboot-utils/lib/rand.c
index 4ac50a9c..ac94a482 100644
--- a/util/libreboot-utils/lib/rand.c
+++ b/util/libreboot-utils/lib/rand.c
@@ -69,8 +69,6 @@
* or your program dies.
*/
-#define ELOTTERY ECANCELED
-
int
win_lottery(void) /* are u lucky? */
{
@@ -82,7 +80,7 @@ win_lottery(void) /* are u lucky? */
if (scmp(s1, s2, BUFSIZ + 2, &rval) >= 0 &&
rval == 0)
- rval = 1; /* winner */
+ rval = 1; /* winner! */
else
rval = 0;