Commit cc138b0d authored by Mark Olesen's avatar Mark Olesen Committed by Andrew Heather
Browse files

COMP: make Random constructor explicit

parent cd366b60
......@@ -85,10 +85,16 @@ class Random
public:
// Public Static Data
//- The default seed value (name may change in the future)
static constexpr label defaultSeed = 123456;
// Constructors
//- Construct with seed value
Random(const label seedValue = 123456);
explicit Random(const label seedValue = defaultSeed);
//- Copy construct with optional reset of seed
Random(const Random& r, const bool reset = false);
......
......@@ -846,7 +846,7 @@ turbulentDFSEMInletFvPatchVectorField
nCellPerEddy_(dict.getOrDefault<label>("nCellPerEddy", 5)),
patchNormal_(Zero),
v0_(Zero),
rndGen_(0, -1),
rndGen_(),
sigmax_(size(), Zero),
maxSigmaX_(Zero),
nEddy_(Zero),
......
Markdown is supported
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