add srand() in speculative.cpp
This commit is contained in:
parent
875319b323
commit
6afc1f60e1
1 changed files with 6 additions and 0 deletions
|
@ -41,6 +41,12 @@ int main(int argc, char ** argv) {
|
|||
// probability threshold for splitting a draft branch (only for n_seq_dft > 1)
|
||||
const float p_split = params.p_split;
|
||||
|
||||
if (params.seed >= 0) {
|
||||
srand(params.seed);
|
||||
} else {
|
||||
srand(time(NULL));
|
||||
}
|
||||
|
||||
#ifndef LOG_DISABLE_LOGS
|
||||
log_set_target(log_filename_generator("speculative", "log"));
|
||||
LOG_TEE("Log start\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue