summaryrefslogtreecommitdiff
path: root/toxcore/network.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/network.c')
-rw-r--r--toxcore/network.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/toxcore/network.c b/toxcore/network.c
index 6a7661c4..28925180 100644
--- a/toxcore/network.c
+++ b/toxcore/network.c
@@ -204,21 +204,6 @@ uint64_t current_time(void)
204#endif 204#endif
205} 205}
206 206
207/* return a random number.
208 */
209uint32_t random_int(void)
210{
211 uint32_t randnum;
212 randombytes((uint8_t *)&randnum , sizeof(randnum));
213 return randnum;
214}
215
216uint64_t random_64b(void)
217{
218 uint64_t randnum;
219 randombytes((uint8_t *)&randnum, sizeof(randnum));
220 return randnum;
221}
222 207
223#ifdef LOGGING 208#ifdef LOGGING
224static void loglogdata(char *message, uint8_t *buffer, size_t buflen, IP_Port *ip_port, ssize_t res); 209static void loglogdata(char *message, uint8_t *buffer, size_t buflen, IP_Port *ip_port, ssize_t res);