MCPcopy Create free account
hub / github.com/crawl/crawl / _do_seeding

Function _do_seeding

crawl-ref/source/random.cc:147–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145 }
146
147 static void _do_seeding(PcgRNG &master)
148 {
149 // TODO: don't initialize gameplay/ui rng?
150 // Use the just seeded RNG to initialize the rest.
151 for (PcgRNG& rng : _global_state)
152 {
153 uint64_t init_state = master.get_uint64();
154 uint64_t seq = master.get_uint64();
155 rng = PcgRNG(init_state, seq);
156 }
157 }
158
159 void seed(uint64_t seed)
160 {

Callers 1

seedFunction · 0.85

Calls 2

PcgRNGClass · 0.85
get_uint64Method · 0.80

Tested by

no test coverage detected