use arc4random_uniform()

This commit is contained in:
Aaron Culliney 2014-06-21 14:52:13 -07:00
parent ea71d197e0
commit 4597bb2a7e

View File

@ -142,12 +142,7 @@ GLUE_C_READ(read_keyboard_strobe)
GLUE_C_READ(read_random)
{
static time_t seed=0;
if (!seed) {
seed = time(NULL);
srandom(seed);
}
return (random() % UINT_MAX);
return arc4random_uniform(0x100);
}
GLUE_C_READ(speaker_toggle)