Skip to content

Commit

Permalink
Use an actual modern randomness algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatenshi committed Dec 10, 2023
1 parent b7c2753 commit af026ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,17 @@
{
"version": "^0.15.23",
"id": "custom-types",
"downloadIfMissing": "https://github.com/sc2ad/Il2CppQuestTypePatching/releases/download/v0.15.23/CustomTypes.qmod"
"downloadIfMissing": "https://github.com/sc2ad/Il2CppQuestTypePatching/releases/download/v0.15.24/CustomTypes.qmod"
},
{
"version": "^0.17.11",
"id": "questui",
"downloadIfMissing": "https://github.com/darknight1050/QuestUI/releases/download/v0.17.11/QuestUI.qmod"
"downloadIfMissing": "https://github.com/darknight1050/QuestUI/releases/download/v0.17.12/QuestUI.qmod"
},
{
"version": "^0.10.17",
"id": "songloader",
"downloadIfMissing": "https://github.com/darknight1050/SongLoader/releases/download/v0.10.17/SongLoader.qmod"
}
],
"modFiles": [
Expand Down
2 changes: 1 addition & 1 deletion src/Impl/RandomSongImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace RandomSongImpl {
SafePtrUnity<GlobalNamespace::LevelCollectionNavigationController> levelCollectionNavigationController;
SafePtrUnity<GlobalNamespace::LevelFilteringNavigationController> filteringNavigationController;

std::default_random_engine generator;
std::mt19937 generator(time(nullptr));

void selectRandomSong()
{
Expand Down

0 comments on commit af026ac

Please sign in to comment.