diff --git a/src/OpenFOAM/primitives/random/cachedRandom/cachedRandom.C b/src/OpenFOAM/primitives/random/cachedRandom/cachedRandom.C index 4bf4054dee..62f40e5454 100644 --- a/src/OpenFOAM/primitives/random/cachedRandom/cachedRandom.C +++ b/src/OpenFOAM/primitives/random/cachedRandom/cachedRandom.C @@ -26,11 +26,6 @@ License #include "cachedRandom.H" #include "OSspecific.H" -#if INT_MAX != 2147483647 -# error "INT_MAX != 2147483647" -# error "The random number generator may not work!" -#endif - // * * * * * * * * * * * * * private Member Functions * * * * * * * * * * * // Foam::scalar Foam::cachedRandom::scalar01() @@ -79,7 +74,7 @@ Foam::cachedRandom::cachedRandom(const label seed, const label count) osRandomSeed(seed_); forAll(samples_, i) { - samples_[i] = drand48(); + samples_[i] = osRandomDouble(); } }