Skip to content

Commit

Permalink
Convert the other divide to a multiply
Browse files Browse the repository at this point in the history
  • Loading branch information
heshpdx committed Sep 3, 2024
1 parent cd71108 commit ad8f8a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sat/bsat/satSolver.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ static void printlits(lit* begin, lit* end)
static inline double drand(double* seed) {
int q;
*seed *= 1389796;
q = (int)(*seed / 2147483647);
q = (int)(*seed * 4.6566128752457969e-10); // 1.0/2147483647.0;
*seed -= (double)q * 2147483647;
return *seed * 4.6566128752457969e-10; // 1.0/2147483647.0
}
Expand Down

0 comments on commit ad8f8a2

Please sign in to comment.