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

Function getRandomValue

fdbserver/workloads/WriteDuringRead.actor.cpp:604–607  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602 }
603
604 Value getRandomValue() {
605 return Value(
606 std::string(deterministicRandom()->randomInt(valueSizeRange.first, valueSizeRange.second + 1), 'x'));
607 }
608
609 // Prevent a write only transaction whose commit was previously cancelled from being reordered after this
610 // transaction

Callers 5

_startMethod · 0.85
clientActorMethod · 0.85
randomTransactionMethod · 0.85
ddRWClientMethod · 0.85
RYWIterator.cppFile · 0.85

Calls 3

deterministicRandomFunction · 0.85
ValueEnum · 0.50
randomIntMethod · 0.45

Tested by

no test coverage detected