From 2af671223ea552afe297921f9afb644dff71c71d Mon Sep 17 00:00:00 2001 From: Sainan Date: Tue, 18 Mar 2025 10:02:52 +0100 Subject: [PATCH] note what the RNG classes are for --- src/services/rngService.ts | 2 ++ 1 file changed, 2 insertions(+) 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;