MCPcopy Create free account
hub / github.com/PDAL/PDAL / Random

Method Random

pdal/util/Random.cpp:42–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40{
41
42Random::Random()
43{
44 std::vector<int32_t> seed;
45 std::random_device rd;
46 for (size_t i = 0; i < std::mt19937::state_size; ++i)
47 seed.push_back(rd());
48 std::seed_seq seedSeq(seed.begin(), seed.end());
49 m_generator.seed(seedSeq);
50}
51
52Random::Random(int32_t seed)
53{

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected