]> git.scottworley.com Git - tattlekey/blobdiff - client/net.c
README: Fix image path for display in gitweb
[tattlekey] / client / net.c
index fa5d07b257d9f96117d299c169380f7538c549ee..3d4be8cea998f707472740155a601ea912f46001 100644 (file)
@@ -34,7 +34,7 @@ static void net_local_init() {
   if (the_pcb)
     return;
 
   if (the_pcb)
     return;
 
-  epoch = get_rand_32();
+  new_epoch();
 
   the_pcb = udp_new();
   if (!the_pcb)
 
   the_pcb = udp_new();
   if (!the_pcb)
@@ -48,6 +48,8 @@ static void net_local_init() {
     signal_error_by_blinking();
 }
 
     signal_error_by_blinking();
 }
 
+void new_epoch() { epoch = get_rand_32(); }
+
 struct tattle_message_wire_format {
   u32_t epoch;
   u16_t sender;
 struct tattle_message_wire_format {
   u32_t epoch;
   u16_t sender;