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

Method randomRemote

fdbserver/networktest.actor.cpp:426–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424 }
425
426 NetworkAddress randomRemote() { return remotes[nondeterministicRandom()->randomInt(0, remotes.size())]; }
427
428 ACTOR static Future<Standalone<StringRef>> readMsg(P2PNetworkTest* self, Reference<IConnection> conn) {
429 state Standalone<StringRef> buffer = makeString(sizeof(int));

Callers 1

Future<Void> outgoingFunction · 0.80

Calls 3

nondeterministicRandomFunction · 0.85
randomIntMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected