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

Function mix_block

source/src/crypto.cpp:392–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390}
391
392static void mix_block(uchar *d, const uchar *s, int len)
393{
394 static uchar sum = 0;
395 int t;
396 while(len-- > 0)
397 {
398 t = *d * *s++ + sum;
399 *d++ += t >> 4;
400 sum += t >> 7;
401 }
402}
403
404void entropy_init(uint seed)
405{

Callers 1

entropy_add_blockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected