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

Function choose_seed

src/models/chatterbox/component_weights.cpp:7–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5namespace engine::models::chatterbox::components {
6
7uint64_t choose_seed(uint64_t seed) {
8 if (seed != 0) {
9 return seed;
10 }
11 std::random_device rd;
12 return (static_cast<uint64_t>(rd()) << 32U) ^ static_cast<uint64_t>(rd());
13}
14
15std::vector<float> read_f32_tensor(
16 const engine::assets::TensorSource & source,

Callers 2

make_gaussian_full_noiseFunction · 0.85
TorchMt19937Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected