diff options
author | irungentoo <irungentoo@gmail.com> | 2013-07-13 19:24:14 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-07-13 19:24:14 -0400 |
commit | 11a39bb49a1b23aa09379dab21f34975b674fac2 (patch) | |
tree | 5cac15b76caeb6fa5b71dffdca42ef280338c324 /core/network.c | |
parent | 5b3c4442ddb0473d5eb1ee9386d2658a27b68af4 (diff) |
Cmake changed, small change in random_int()
Cmake builds now builds the new ncurses test only on non windows.
Diffstat (limited to 'core/network.c')
-rw-r--r-- | core/network.c | 4 |
1 files changed, 3 insertions, 1 deletions
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() | |||
48 | 48 | ||
49 | } | 49 | } |
50 | 50 | ||
51 | //return a random number | ||
52 | //NOTE: this function should probably not be used where cryptographic randomness is absolutely necessary | ||
51 | uint32_t random_int() | 53 | uint32_t random_int() |
52 | { | 54 | { |
53 | #ifdef WIN32 | 55 | #ifndef VANILLA_NACL |
54 | //NOTE: this function comes from libsodium | 56 | //NOTE: this function comes from libsodium |
55 | return randombytes_random(); | 57 | return randombytes_random(); |
56 | #else | 58 | #else |