17 lines
697 B
Diff
17 lines
697 B
Diff
diff --git a/src/llama-sampler.cpp b/src/llama-sampler.cpp
|
|
index 82f2babcab9b..10c60f7f9b19 100644
|
|
--- a/src/llama-sampler.cpp
|
|
+++ b/src/llama-sampler.cpp
|
|
@@ -336,9 +336,10 @@ static void llama_sampler_top_k_impl(llama_token_data_array * cur_p, int32_t k)
|
|
}
|
|
|
|
static uint32_t get_rng_seed(uint32_t seed) {
|
|
+
|
|
if (seed == LLAMA_DEFAULT_SEED) {
|
|
// use system clock if std::random_device is not a true RNG
|
|
- static bool is_rd_prng = std::random_device().entropy() == 0;
|
|
+ static bool is_rd_prng = true;//std::random_device().entropy() == 0;
|
|
if (is_rd_prng) {
|
|
return (uint32_t) std::chrono::system_clock::now().time_since_epoch().count();
|
|
}
|