mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 10:06:26 +08:00
Allow to pass a 'seed' to RKISS
This somewhat simplifies the code. Suggested by Lucas Braesch. No functional change.
This commit is contained in:
@@ -348,11 +348,7 @@ namespace {
|
||||
|
||||
} // namespace
|
||||
|
||||
PolyglotBook::PolyglotBook() {
|
||||
|
||||
for (int i = Time::now() % 10000; i > 0; i--)
|
||||
RKiss.rand<unsigned>(); // Make random number generation less deterministic
|
||||
}
|
||||
PolyglotBook::PolyglotBook() : RKiss(Time::now() % 10000) {}
|
||||
|
||||
PolyglotBook::~PolyglotBook() { if (is_open()) close(); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user