When seed <= 0 - use the clock to generate one
This commit is contained in:
parent
928480ef5b
commit
ae44e23ee3
2 changed files with 2 additions and 2 deletions
2
main.cpp
2
main.cpp
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue