mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-05 22:43:39 +00:00
Merge branch 'main' of github.com:ringtailsoftware/uvm32
This commit is contained in:
commit
044d600b86
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ void carve(int x, int y) {
|
|||
int dirs[] = {0, 1, 2, 3};
|
||||
// Fisher-Yates shuffle
|
||||
for (int i = 3; i > 0; i--) {
|
||||
int j = mulberry32() % (i + 1);
|
||||
int j = (unsigned)mulberry32() % (i + 1);
|
||||
int tmp = dirs[i];
|
||||
dirs[i] = dirs[j];
|
||||
dirs[j] = tmp;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue