MCPcopy Create free account
hub / github.com/apache/trafficserver / next_rand

Function next_rand

src/iocore/cache/P_CacheInternal.h:405–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403}
404
405inline unsigned int
406next_rand(unsigned int *p)
407{
408 unsigned int seed = *p;
409 seed = 1103515145 * seed + 12345;
410 *p = seed;
411 return seed;
412}
413
414extern ClassAllocator<CacheRemoveCont, false> cacheRemoveContAllocator;
415

Callers 2

build_vol_hash_tableFunction · 0.70
regress_rand_CacheKeyFunction · 0.50

Calls

no outgoing calls

Tested by 1

regress_rand_CacheKeyFunction · 0.40