use random() if we don't have arc4random()
This commit is contained in:
@@ -1102,7 +1102,11 @@ static void
|
||||
asn1rand(uint8_t *rand, size_t len)
|
||||
{
|
||||
while (len) {
|
||||
#ifdef HAVE_ARC4RANDOM
|
||||
*rand++ = arc4random();
|
||||
#else
|
||||
*rand++ = random();
|
||||
#endif
|
||||
len--;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user