MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / before

Method before

source/server/StarServerQueryThread.cpp:233–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231 : m_time(Time::monotonicMilliseconds()), m_challenge(Random::randi32()) {}
232
233bool ServerQueryThread::RequestChallenge::before(uint64_t time) {
234 return m_time < time;
235}
236
237int ServerQueryThread::RequestChallenge::getChallenge() {
238 return m_challenge;

Callers 1

pruneChallengesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected