Skip to content
Snippets Groups Projects
Commit be57805c authored by mattijs's avatar mattijs
Browse files

COMP: cachedRandom: use OSspecific version for random number

Fixes http://www.openfoam.com/mantisbt/view.php?id=233
parent 67608749
Branches
Tags
No related merge requests found
......@@ -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();
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment