From 7c6121eb6496137ef7a64b80d8155c1a93aae7e0 Mon Sep 17 00:00:00 2001 From: Howard Su Date: Wed, 28 Jun 2023 15:52:23 -0700 Subject: [PATCH] use uint32_t for seed Co-authored-by: Georgi Gerganov --- llama.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama.cpp b/llama.cpp index 94ec3807e..e14724448 100644 --- a/llama.cpp +++ b/llama.cpp @@ -3091,7 +3091,7 @@ int llama_get_kv_cache_token_count(const struct llama_context * ctx) { #define LLAMA_MAX_RNG_STATE (64*1024) -void llama_set_rng_seed(struct llama_context * ctx, unsigned int seed) { +void llama_set_rng_seed(struct llama_context * ctx, uint32_t seed) { if (seed == LLAMA_DEFAULT_SEED) { seed = time(NULL); }