mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 10:06:26 +08:00
Get rid of struct Time
We just need the milliseconds of current system time for our needs. This allows to simplify the API. No functional change.
This commit is contained in:
@@ -340,7 +340,7 @@ namespace {
|
||||
|
||||
Book::Book() {
|
||||
|
||||
for (int i = Time::now().msec() % 10000; i > 0; i--)
|
||||
for (int i = Time::now() % 10000; i > 0; i--)
|
||||
RKiss.rand<unsigned>(); // Make random number generation less deterministic
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user