fix: address PR reviewer feedback regarding random_shuffle and queue.empty()

This commit is contained in:
zukrmn
2026-03-08 22:40:41 +01:00
committed by JuiceyDev
parent 42b0352ec3
commit c122bff122
2 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -530,8 +530,7 @@ void Villager::addOffers(int addCount)
}
// shuffle the list to make it more interesting
std::random_device rd;
std::mt19937 g(rd());
static thread_local std::mt19937 g(std::random_device{}());
std::shuffle(newOffers->begin(), newOffers->end(), g);
if (offers == NULL)