Support IPv6 subnets in parent extip

This commit is contained in:
z3apa3a committed 2021-04-21 20:39:57 +03:00
1 parent 36f16fb899
commit bad85a3d51
4 files changed
+30 -8

No files matched your search

+3 -3
View File
@@ -137,13 +137,13 @@ char* NULLADDR="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";
int myrand(void * entropy, int len){
int i;
unsigned short init;
uint16_t init;
init = randomizer;
for(i=0; i < len/2; i++){
init ^= ((unsigned short *)entropy)[i];
init ^= ((uint16_t *)entropy)[i];
}
srand(init);
srand(rand()+init);
randomizer = rand();
return rand();