1
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:
Frank Denis 2013-10-21 21:11:06 -07:00
parent 696934b123
commit a5834e1e25

View File

@ -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)
{