MCPcopy Create free account
hub / github.com/NetSys/bess / Random

Method Random

core/utils/random.h:40–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38class Random {
39 public:
40 Random() : seed_(rdtsc()) {}
41 explicit Random(uint64_t seed) : seed_(seed) {}
42
43 void SetSeed(uint64_t seed) { this->seed_ = seed; };

Callers

nothing calls this directly

Calls 1

rdtscFunction · 0.85

Tested by

no test coverage detected