MCPcopy Create free account
hub / github.com/apple/foundationdb / RandomByteGenerator

Method RandomByteGenerator

fdbserver/workloads/AsyncFile.cpp:27–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25// class RandomByteGenerator
26
27RandomByteGenerator::RandomByteGenerator() {
28 BUF_SIZE = 16 * (1 << 20);
29 b1 = new char[BUF_SIZE];
30 for (int i = 0; i < BUF_SIZE / sizeof(uint32_t); i++)
31 ((uint32_t*)b1)[i] = deterministicRandom()->randomUInt32();
32}
33
34RandomByteGenerator::~RandomByteGenerator() {
35 delete b1;

Callers

nothing calls this directly

Calls 2

deterministicRandomFunction · 0.85
randomUInt32Method · 0.80

Tested by

no test coverage detected