MCPcopy Create free account
hub / github.com/TheWaveWarden/odin2 / seedRandom

Method seedRandom

Source/Utilities.cpp:1469–1474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1467}
1468
1469void Utilities::seedRandom() {
1470 if (!m_random_seeded) {
1471 std::srand(std::time(nullptr));
1472 m_random_seeded = true;
1473 }
1474}
1475
1476// interpolates by cosine, frac in [0,1]
1477float cosInterpol(float p_left, float p_right, float p_frac) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected