Skip to content

Commit 7182bcb

Browse files
committed
win: set seed properly for random number generator
1 parent 3af795b commit 7182bcb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

include/proxsuite/proxqp/utils/random_qp_problems.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,7 @@ using proxqp::u64;
7272
is not available. Therefore, we use a random number generator from the stdlib
7373
instead of our custom Lehmer random number generator. The necessary lehmer
7474
functions used in in our code are remplaced with calls to the stdlib.*/
75-
std::random_device rd;
76-
std::mt19937 gen(rd());
77-
gen.seed(1234); // by default set a seed
75+
std::mt19937 gen(1234);
7876
std::uniform_real_distribution<> uniform_dist(0.0, 1.0);
7977
std::normal_distribution<double> normal_dist;
8078
using u128 = u64;

0 commit comments

Comments
 (0)