Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function* toss(
generator: IProperty,
seed: number,
random: (seed: number) => prand.RandomGenerator,
examples: Ts[]
): IterableIterator<() => Shrinkable> {
yield* examples.map(e => () => new Shrinkable(e));
let idx = 0;
let rng = random(seed);
for (;;) {
rng = prand.skipN(rng, 42);
yield lazyGenerate(generator, rng, idx++);
}
}