use uint32_t for seed

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
This commit is contained in:
Howard Su 2023-06-28 15:52:23 -07:00 committed by GitHub
parent d7d454f227
commit 7c6121eb64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}