Skip to content

Commit

Permalink
fix rand seed
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuumorimoto committed Jan 10, 2025
1 parent 6dd9d79 commit f72facb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/host/random_generator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class rn_gen {
}

static void init() {
srand(time(NULL));
// srand(137);
// srand(time(NULL));
srand(137);

int thread_num = parlay::num_workers();
cout<<"rand init: tn = " << thread_num << endl;
Expand All @@ -47,5 +47,5 @@ class rn_gen {

private:
size_t state = 0;

};

0 comments on commit f72facb

Please sign in to comment.