MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / srand

Method srand

extlibs/soloud/src/audiosource/sfxr/soloud_sfxr.cpp:39–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 }
38
39 void Prg::srand(int aSeed)
40 {
41 index = 0;
42 int i;
43 for (i = 0; i < 16; i++)
44 state[i] = aSeed + i * aSeed + i;
45 }
46
47 // WELL512 implementation, public domain by Chris Lomont
48 unsigned int Prg::rand()

Callers 2

SfxrInstanceMethod · 0.80
loadPresetMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected