MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / philox_4x32_10

Function philox_4x32_10

src/framework/sampling/torch_random.cpp:53–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 lo0,
52 };
53}
54
55Philox4 philox_4x32_10(Philox4 counter, uint64_t seed) {
56 uint32_t key0 = static_cast<uint32_t>(seed);
57 uint32_t key1 = static_cast<uint32_t>(seed >> 32U);
58 for (int round = 0; round < 10; ++round) {
59 counter = philox_round(counter, key0, key1);
60 key0 += kPhiloxW0;
61 key1 += kPhiloxW1;
62 }
63 return counter;
64}
65

Calls 1

philox_roundFunction · 0.85

Tested by

no test coverage detected