llama : allow 0 as a seed number. (#1275)

This commit is contained in:
Robert Brisita 2023-05-02 12:23:44 -04:00 committed by GitHub
parent e2cd506999
commit 2bb992f034
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 9 additions and 9 deletions

View file

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