Browse Source

Merge pull request #373 from Logan007/snSd

seeded random number generator in supernode
pull/391/head
Luca Deri 4 years ago
committed by GitHub
parent
commit
0489c7bbe9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/sn_utils.c

2
src/sn_utils.c

@ -225,6 +225,8 @@ int sn_init(n2n_sn_t *sss) {
sss->max_auto_ip_net.net_addr = ntohl(sss->max_auto_ip_net.net_addr);
sss->max_auto_ip_net.net_bitlen = N2N_SN_AUTO_IP_NET_BIT_DEFAULT;
n2n_srand (n2n_seed());
return 0; /* OK */
}

Loading…
Cancel
Save