Files
Erupe/server/channelserver
Houmgaor 6ccbc24a4a fix(gacha): prevent infinite loop in getRandomEntries
Add guards for edge cases:
- Empty entries with rolls > 0
- Zero or negative rolls
- Zero total weight in non-box mode
- Box mode with more rolls than available entries

Previously these cases caused infinite loops or panics.
2026-02-05 08:51:09 +01:00
..
2022-08-11 15:21:04 +10:00
2022-07-29 03:25:23 +10:00
2023-03-04 21:43:10 +11:00
2023-03-31 00:53:50 +11:00
2023-03-12 23:29:50 +11:00
2023-03-04 21:43:10 +11:00
2023-03-31 00:04:51 +11:00
2022-07-29 03:25:23 +10:00
2022-08-02 16:21:56 +10:00
2022-07-29 03:25:23 +10:00
2023-03-04 21:43:10 +11:00
2026-02-02 16:07:36 +01:00
2025-11-24 18:41:37 +01:00
2023-03-04 21:43:10 +11:00