mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-28 12:47:13 +09:00
Use arc4random() in tests if available.
This commit is contained in:
@@ -9,6 +9,11 @@
|
||||
#define TEST_NAME_RES TEST_NAME ".res"
|
||||
#define TEST_NAME_OUT TEST_SRCDIR "/" TEST_NAME ".exp"
|
||||
|
||||
#ifdef HAVE_ARC4RANDOM
|
||||
# undef rand
|
||||
# define rand(X) arc4random(X)
|
||||
#endif
|
||||
|
||||
FILE *fp_res;
|
||||
int xmain(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user