mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Support IPv6 subnets in parent extip
This commit is contained in:
1 parent
36f16fb899
commit
bad85a3d51
4 files changed
+30
-8
No files matched your search
+3
-3
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user