mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-19 18:15:18 -07:00
Use arc4random() if available in onetimeauth_poly1305_try.c
This commit is contained in:
parent
696934b123
commit
a5834e1e25
@ -47,6 +47,11 @@ deallocate(void)
|
||||
free(k2_);
|
||||
}
|
||||
|
||||
#ifdef HAVE_ARC4RANDOM
|
||||
# undef rand
|
||||
# define rand(X) arc4random(X)
|
||||
#endif
|
||||
|
||||
static const char *
|
||||
checksum_compute(void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user