diff options
author | Robert Brisita <986796+rbrisita@users.noreply.github.com> | 2023-05-02 12:23:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-02 19:23:44 +0300 |
commit | 2bb992f034689e2ddd7b9ac05163b0359a5957b3 (patch) | |
tree | 7ee292ca430cc0fcb40730dadcee333608115f9a /examples/perplexity | |
parent | e2cd5069999181a9e4a22cf420e0491878b3062f (diff) |
llama : allow 0 as a seed number. (#1275)
Diffstat (limited to 'examples/perplexity')
-rw-r--r-- | examples/perplexity/perplexity.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/perplexity/perplexity.cpp b/examples/perplexity/perplexity.cpp index 2ca3388..d474bc5 100644 --- a/examples/perplexity/perplexity.cpp +++ b/examples/perplexity/perplexity.cpp @@ -109,7 +109,7 @@ int main(int argc, char ** argv) { fprintf(stderr, "%s: build = %d (%s)\n", __func__, BUILD_NUMBER, BUILD_COMMIT); - if (params.seed <= 0) { + if (params.seed < 0) { params.seed = time(NULL); } |