diff --git a/src/llama-sampler.cpp b/src/llama-sampler.cpp index b797c50be..6c958a287 100644 --- a/src/llama-sampler.cpp +++ b/src/llama-sampler.cpp @@ -1162,7 +1162,7 @@ static void llama_sampler_dist_apply(struct llama_sampler * smpl, llama_token_da if (cur_p->size == 1) { // keep the RNG state aligned with backend sampling, which draws once per output - dist(ctx->rng); + (void) dist(ctx->rng); cur_p->data[0].p = 1.0f; return; } @@ -1377,7 +1377,7 @@ static void llama_sampler_dist_accept(struct llama_sampler * smpl, llama_token t } std::uniform_real_distribution dist(0.0f, 1.0f); - dist(sctx->rng); + (void) dist(sctx->rng); ++sctx->n_backend_draws_committed; }