note what the RNG classes are for
All checks were successful
Build / build (20) (push) Successful in 43s
Build / build (22) (push) Successful in 1m7s
Build / build (18) (push) Successful in 1m6s
Build / build (18) (pull_request) Successful in 46s
Build / build (20) (pull_request) Successful in 1m7s
Build / build (22) (pull_request) Successful in 1m1s

This commit is contained in:
Sainan 2025-03-18 10:02:52 +01:00
parent b32de0711b
commit 2af671223e

View File

@ -70,6 +70,7 @@ export const getRandomWeightedRewardUc = <T extends { Rarity: TRarity }>(
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;