X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fsubnet.c;h=fe7d23efb980f4f93daff30c8f5d26a1e3aecb2f;hb=6debc6c79ba385d35f646e0958f84ace5b8f4b4d;hp=17dd39e83b334d1f7774f54dafdb26dd3b7d4f8f;hpb=a80253aee68968c722c796c523ed26655d29c882;p=tinc diff --git a/src/subnet.c b/src/subnet.c index 17dd39e8..fe7d23ef 100644 --- a/src/subnet.c +++ b/src/subnet.c @@ -22,6 +22,7 @@ #include "splay_tree.h" #include "control_common.h" +#include "crypto.h" #include "hash.h" #include "logger.h" #include "net.h" @@ -128,7 +129,7 @@ void subnet_cache_flush_table(subnet_type_t stype) { /* Initialising trees */ void init_subnets(void) { - hash_seed = (uint32_t)rand(); + hash_seed = prng(UINT32_MAX); // tables need to be cleared on startup subnet_cache_flush_tables();