When seed <= 0 - use the clock to generate one

This commit is contained in:
Georgi Gerganov 2023-03-22 07:47:15 +02:00
parent 928480ef5b
commit ae44e23ee3
No known key found for this signature in database
GPG key ID: 449E073F9DC10735
2 changed files with 2 additions and 2 deletions

View file

@ -170,7 +170,7 @@ int main(int argc, char ** argv) {
"expect poor results\n", __func__, params.n_ctx);
}
if (params.seed < 0) {
if (params.seed <= 0) {
params.seed = time(NULL);
}