diff options
Diffstat (limited to 'util/libreboot-utils/lib/rand.c')
| -rw-r--r-- | util/libreboot-utils/lib/rand.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/util/libreboot-utils/lib/rand.c b/util/libreboot-utils/lib/rand.c index 06d5f49e..3b20ab65 100644 --- a/util/libreboot-utils/lib/rand.c +++ b/util/libreboot-utils/lib/rand.c @@ -72,6 +72,12 @@ * or your program dies. */ +#ifndef BUFSIZ +#define BUFSIZ 8192 /* reasonably on modern 64-bit systems */ +#elif (BUFSIZ <= 0) +#error defined buffer size BUFSIZ below or equal to zero +#endif + int win_lottery(char **buf) /* are u lucky? */ { |
