We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 675e3cb commit 4b19b01Copy full SHA for 4b19b01
common/sampling.cpp
@@ -68,7 +68,7 @@ void llama_sampling_reset(llama_sampling_context * ctx) {
68
69
void llama_sampling_set_rng_seed(struct llama_sampling_context * ctx, uint32_t seed) {
70
if (seed == LLAMA_DEFAULT_SEED) {
71
- seed = time(NULL);
+ seed = std::random_device{}();
72
}
73
ctx->rng.seed(seed);
74
0 commit comments