MCPcopy Create free account
hub / github.com/SimHacker/micropolis / FeedRandom

Function FeedRandom

MicropolisCore/src/CellEngine/src/cellengine.cpp:137–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135
136
137void FeedRandom(
138 long food)
139{
140 randomWrite--;
141 if (randomWrite < 0) {
142 randomWrite = RANDOMS_COUNT - 1;
143 }
144 randoms[randomWrite] ^= food;
145}
146
147
148long Rand32()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected