MCPcopy Create free account
hub / github.com/csmith-project/csmith / seedrand

Method seedrand

src/AbsRndNumGenerator.cpp:94–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94void
95AbsRndNumGenerator::seedrand(const unsigned long seed )
96{
97#ifdef HAVE_SRAND48_DETERMINISTIC
98 // OpenBSD requires a special call to activate the standard,
99 // deterministic behavior of `lrand48'.
100 srand48_deterministic(seed);
101#else
102 srand48(seed);
103#endif
104}
105
106/*
107 * Return random shuffled integers in set [0...n]

Callers

nothing calls this directly

Calls 1

srand48Function · 0.85

Tested by

no test coverage detected