MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / xrand

Function xrand

examples/test/avl.c:243–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241static unsigned int xseed = 0x11223344;
242
243static inline unsigned int xrand(void)
244{
245 return (((xseed = xseed * 214013L + 2531011L) >> 16) & 0x7fffffff);
246}
247
248// generate keys
249static inline void init_random_keys(int *keys, int count, int seed)

Callers 1

init_random_keysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected