X-Git-Url: http://git.scottworley.com/tattlekey/blobdiff_plain/8eacf88f138305f7bb8802367d80fa787d8830c4..7a3bc82f02480088052d4d583c89b7cd9c90f8cf:/client/net.c diff --git a/client/net.c b/client/net.c index fa5d07b..3d4be8c 100644 --- a/client/net.c +++ b/client/net.c @@ -34,7 +34,7 @@ static void net_local_init() { if (the_pcb) return; - epoch = get_rand_32(); + new_epoch(); the_pcb = udp_new(); if (!the_pcb) @@ -48,6 +48,8 @@ static void net_local_init() { signal_error_by_blinking(); } +void new_epoch() { epoch = get_rand_32(); } + struct tattle_message_wire_format { u32_t epoch; u16_t sender;