mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-17 08:40:14 +02:00
@@ -20,6 +20,9 @@
|
||||
#if defined(USE_URANDOM) && \
|
||||
((USE_URANDOM) > 0)
|
||||
#include <fcntl.h> /* if not arc4random: /dev/urandom */
|
||||
#elif defined(__linux__)
|
||||
#include <sys/random.h>
|
||||
#include <sys/syscall.h>
|
||||
#endif
|
||||
|
||||
#include <fcntl.h>
|
||||
@@ -70,7 +73,7 @@
|
||||
*/
|
||||
|
||||
int
|
||||
win_lottery(void) /* are u lucky? */
|
||||
win_lottery(char **buf) /* are u lucky? */
|
||||
{
|
||||
size_t size = 0;
|
||||
int rval;
|
||||
@@ -84,6 +87,8 @@ win_lottery(void) /* are u lucky? */
|
||||
else
|
||||
rval = 0;
|
||||
|
||||
(void) scat(s1, s2, BUFSIZ << 1, buf);
|
||||
|
||||
free_if_null(&s1);
|
||||
free_if_null(&s2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user