summaryrefslogtreecommitdiff
path: root/common/sampling.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/sampling.cpp')
-rw-r--r--common/sampling.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/sampling.cpp b/common/sampling.cpp
index f2466550..cc83600d 100644
--- a/common/sampling.cpp
+++ b/common/sampling.cpp
@@ -68,7 +68,7 @@ void llama_sampling_reset(llama_sampling_context * ctx) {
void llama_sampling_set_rng_seed(struct llama_sampling_context * ctx, uint32_t seed) {
if (seed == LLAMA_DEFAULT_SEED) {
- seed = time(NULL);
+ seed = std::random_device{}();
}
ctx->rng.seed(seed);
}