summaryrefslogtreecommitdiff
path: root/toxcore/network.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/network.c')
-rw-r--r--toxcore/network.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/toxcore/network.c b/toxcore/network.c
index 34775570..666846db 100644
--- a/toxcore/network.c
+++ b/toxcore/network.c
@@ -23,7 +23,7 @@
23 23
24#include "network.h" 24#include "network.h"
25 25
26/* return current UNIX time in microseconds (us). */ 26/* return current UNIX time in microseconds (us). */
27uint64_t current_time(void) 27uint64_t current_time(void)
28{ 28{
29 uint64_t time; 29 uint64_t time;
@@ -44,7 +44,7 @@ uint64_t current_time(void)
44#endif 44#endif
45} 45}
46 46
47/* return a random number. 47/* return a random number.
48 * NOTE: This function should probably not be used where cryptographic randomness is absolutely necessary. 48 * NOTE: This function should probably not be used where cryptographic randomness is absolutely necessary.
49 */ 49 */
50uint32_t random_int(void) 50uint32_t random_int(void)
@@ -145,8 +145,8 @@ static void at_shutdown(void)
145 * ip must be in network order EX: 127.0.0.1 = (7F000001). 145 * ip must be in network order EX: 127.0.0.1 = (7F000001).
146 * port is in host byte order (this means don't worry about it). 146 * port is in host byte order (this means don't worry about it).
147 * 147 *
148 * returns Networking_Core object if no problems 148 * return Networking_Core object if no problems
149 * returns NULL if there are problems. 149 * return NULL if there are problems.
150 */ 150 */
151Networking_Core *new_networking(IP ip, uint16_t port) 151Networking_Core *new_networking(IP ip, uint16_t port)
152{ 152{