MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / initRandomData

Method initRandomData

Engine/source/sim/netInterface.cpp:49–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void NetInterface::initRandomData()
50{
51 mRandomDataInitialized = true;
52 U32 seed = Platform::getRealMilliseconds();
53
54 if(Journal::IsPlaying())
55 Journal::Read(&seed);
56 else if(Journal::IsRecording())
57 Journal::Write(seed);
58
59 MRandomR250 myRandom(seed);
60 for(U32 i = 0; i < 12; i++)
61 mRandomHashData[i] = myRandom.randI();
62}
63
64void NetInterface::addPendingConnection(NetConnection *connection)
65{

Callers

nothing calls this directly

Calls 5

IsPlayingFunction · 0.85
IsRecordingFunction · 0.85
randIMethod · 0.60
ReadFunction · 0.50
WriteFunction · 0.50

Tested by

no test coverage detected