MCPcopy Create free account
hub / github.com/3proxy/3proxy / myrand

Function myrand

src/common.c:109–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107char* NULLADDR="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";
108
109int myrand(void * entropy, int len){
110 int i;
111 unsigned short init;
112
113 init = randomizer;
114 for(i=0; i < len/2; i++){
115 init ^= ((unsigned short *)entropy)[i];
116 }
117 srand(init);
118 randomizer = rand();
119 return rand();
120
121}
122
123#ifndef WITH_POLL
124int

Callers 5

proxychildFunction · 0.85
handleredirectFunction · 0.85
inithashtableFunction · 0.85
udpresolveFunction · 0.85
genchallengeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected