Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/llama.cpp/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 617 B image not shown  

Quelle  random_device.patch   Sprache: unbekannt

 
Spracherkennung für: .patch vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

diff --git a/src/llama-sampling.cpp b/src/llama-sampling.cpp
index dd1d9eee52..41081da1ba 100644
--- a/src/llama-sampling.cpp
+++ b/src/llama-sampling.cpp
@@ -305,9 +305,10 @@
 }
 
 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();
         }

[Dauer der Verarbeitung: 0.22 Sekunden, vorverarbeitet 2026-08-25]