Convert the other divide to a multiply

This commit is contained in:
Mahesh Madhav 2024-09-03 04:48:07 +00:00
parent cd711089d7
commit ad8f8a2aab
1 changed files with 1 additions and 1 deletions

View File

@ -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
}