summaryrefslogtreecommitdiff
path: root/toxcore/network.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/network.h')
-rw-r--r--toxcore/network.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/network.h b/toxcore/network.h
index 6d9bbfc0..7dea8c16 100644
--- a/toxcore/network.h
+++ b/toxcore/network.h
@@ -62,6 +62,7 @@ typedef int sock_t;
62#include <sodium.h> 62#include <sodium.h>
63#else 63#else
64#include <crypto_box.h> 64#include <crypto_box.h>
65#include <randombytes.h>
65#define crypto_box_MACBYTES (crypto_box_ZEROBYTES - crypto_box_BOXZEROBYTES) 66#define crypto_box_MACBYTES (crypto_box_ZEROBYTES - crypto_box_BOXZEROBYTES)
66#endif 67#endif
67 68
@@ -229,7 +230,6 @@ typedef struct {
229uint64_t current_time(void); 230uint64_t current_time(void);
230 231
231/* return a random number. 232/* return a random number.
232 * NOTE: this function should probably not be used where cryptographic randomness is absolutely necessary.
233 */ 233 */
234uint32_t random_int(void); 234uint32_t random_int(void);
235 235