From: Marco Costalba Date: Sat, 1 Oct 2011 05:35:24 +0000 (+0100) Subject: Document why Book is defined static X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=a90a990118fa84d1e6138654dd24d2f7f4ec3761 Document why Book is defined static This was not clear to someone on talkchess and actually is not trivial to understand. No functional change. Signed-off-by: Marco Costalba --- diff --git a/src/search.cpp b/src/search.cpp index ed18936f..1f848183 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -363,7 +363,7 @@ int64_t perft(Position& pos, Depth depth) { bool think(Position& pos, const SearchLimits& limits, Move searchMoves[]) { - static Book book; + static Book book; // Define static to initialize the PRNG only once // Initialize global search-related variables StopOnPonderhit = StopRequest = QuitRequest = AspirationFailLow = false;