fix: rng impl

This commit is contained in:
hyper
2026-04-01 17:37:24 +08:00
parent df9698b67b
commit 8d778f9867
2 changed files with 4 additions and 34 deletions
-6
View File
@@ -70,12 +70,6 @@ describe('createRNG', () => {
expect(firstSequence).toEqual(secondSequence);
});
it('should work as callable function', () => {
const rng = createRNG(42);
rng(123);
expect(rng.getSeed()).toBe(123);
});
it('should generate uniformly distributed integers', () => {
const rng = createRNG(42);
const buckets = new Array(10).fill(0);