Universalize a single call to srand() on map init (#1422)

This commit is contained in:
Deathreus
2021-03-07 04:54:27 -08:00
committed by GitHub
parent 5bc48b2ab3
commit f9633a5f6f
4 changed files with 3 additions and 6 deletions
-1
View File
@@ -485,7 +485,6 @@ void CMenuHandler::OnMenuVoteResults(IBaseMenu *menu, const menu_vote_result_t *
if (num_items > 1)
{
/* Yes, we do. */
srand(time(NULL));
winning_item = rand() % num_items;
winning_item = results->item_list[winning_item].item;
} else {