MCPcopy Create free account
hub / github.com/RenderKit/embree / LCG_next

Function LCG_next

tutorials/common/math/random_sampler.h:45–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45__forceinline unsigned int LCG_next(unsigned int value)
46{
47 const unsigned int m = 1664525;
48 const unsigned int n = 1013904223;
49
50 return value * m + n;
51}
52
53__forceinline void RandomSampler_init(RandomSampler& self, int id)
54{

Callers 2

RandomSampler_getIntFunction · 0.85
RandomSampler_getUIntFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected