MCPcopy Create free account
hub / github.com/ElementsProject/elements / GenerateRandomNumber

Function GenerateRandomNumber

src/leveldb/issues/issue320_test.cc:21–21  ·  view source on GitHub ↗

Creates a random number in the range of [0, max).

Source from the content-addressed store, hash-verified

19
20// Creates a random number in the range of [0, max).
21int GenerateRandomNumber(int max) { return std::rand() % max; }
22
23std::string CreateRandomString(int32_t index) {
24 static const size_t len = 1024;

Callers 2

CreateRandomStringFunction · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected