summaryrefslogtreecommitdiff
path: root/util/libreboot-utils/lottery.c
blob: 089c5bc417781fbdc630c86eb06c218681894e96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* SPDX-License-Identifier: MIT                                        ( >:3 )
 * Copyright (c) 2026 Leah Rowe <leah@libreboot.org>                    /| |\
   Something something non-determinism                                   / \ */

#include <stdio.h>
#include <stdint.h>
#include "include/common.h"

int
main(int argc, char **argv)
{
	int same = 0;
	(void) argc, (void) argv;
	xpledgex("stdio", NULL);

	if (rsize(SIZE_MAX) == rsize(SIZE_MAX))
		same = 1;

	printf("%s\n", same ? "You win!" : "You lose!");
	return same ^ 1;
}