diff --git a/src/services/rngService.ts b/src/services/rngService.ts index f93763e8..9791b5c2 100644 --- a/src/services/rngService.ts +++ b/src/services/rngService.ts @@ -70,6 +70,7 @@ export const getRandomWeightedRewardUc = ( return getRandomReward(resultPool); }; +// Seeded RNG for internal usage. Based on recommendations in the ISO C standards. export class CRng { state: number; @@ -93,6 +94,7 @@ export class CRng { } } +// Seeded RNG for cases where we need identical results to the game client. Based on work by Donald Knuth. export class SRng { state: bigint;