fix: rng impl
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user