From d7d454f227368431df7de4439baadd0029b8a87f Mon Sep 17 00:00:00 2001 From: Howard Su Date: Wed, 28 Jun 2023 15:51:56 -0700 Subject: [PATCH] Use uint32_t for seed Co-authored-by: Georgi Gerganov --- llama.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama.h b/llama.h index 90a219abb..efc8efe86 100644 --- a/llama.h +++ b/llama.h @@ -198,7 +198,7 @@ extern "C" { LLAMA_API int llama_get_kv_cache_token_count(const struct llama_context * ctx); // Sets the current rng seed. - LLAMA_API void llama_set_rng_seed(struct llama_context * ctx, unsigned int seed); + LLAMA_API void llama_set_rng_seed(struct llama_context * ctx, uint32_t seed); // Returns the maximum size in bytes of the state (rng, logits, embedding // and kv_cache) - will often be smaller after compacting tokens