mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Use arc4random() if available in onetimeauth_poly1305_try.c
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user