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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
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_addr = ntohl(sss->max_auto_ip_net.net_addr); |
|
|
sss->max_auto_ip_net.net_bitlen = N2N_SN_AUTO_IP_NET_BIT_DEFAULT; |
|
|
sss->max_auto_ip_net.net_bitlen = N2N_SN_AUTO_IP_NET_BIT_DEFAULT; |
|
|
|
|
|
|
|
|
|
|
|
n2n_srand (n2n_seed()); |
|
|
|
|
|
|
|
|
return 0; /* OK */ |
|
|
return 0; /* OK */ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|