MCPcopy Create free account
hub / github.com/assaultcube/AC / entropy_add_byte

Function entropy_add_byte

source/src/crypto.cpp:431–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429}
430
431void entropy_add_byte(uchar b)
432{
433 static int next = 0;
434
435 int r = entpool[next] & 7;
436 entpool[next++] ^= b << r | b >> (8 - r);
437 if(next >= ENTPOOLSIZE) next = 0;
438}
439
440void entropy_add_block(const uchar *s, int len)
441{

Callers 4

servermsFunction · 0.85
serversliceFunction · 0.85
checkinputFunction · 0.85
main.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected