From 11a39bb49a1b23aa09379dab21f34975b674fac2 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Sat, 13 Jul 2013 19:24:14 -0400 Subject: Cmake changed, small change in random_int() Cmake builds now builds the new ncurses test only on non windows. --- core/network.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core/network.c') diff --git a/core/network.c b/core/network.c index 9693df1c..c08b3512 100644 --- a/core/network.c +++ b/core/network.c @@ -48,9 +48,11 @@ uint64_t current_time() } +//return a random number +//NOTE: this function should probably not be used where cryptographic randomness is absolutely necessary uint32_t random_int() { - #ifdef WIN32 + #ifndef VANILLA_NACL //NOTE: this function comes from libsodium return randombytes_random(); #else -- cgit v1.2.3