MCPcopy Index your code
hub / github.com/TeaCoder52/patcode / getRng

Function getRng

src/utils.ts:4–6  ·  view source on GitHub ↗
(options?: GenerateOptions)

Source from the content-addressed store, hash-verified

2import { resolveRng } from './rng'
3
4export function getRng(options?: GenerateOptions): () => number {
5 return resolveRng(options)
6}
7
8export function getAllowedDigits(options?: GenerateOptions): string[] {
9 if (options?.allowedDigits && options.allowedDigits.length > 0) {

Callers 4

patterns4.test.tsFile · 0.90
patterns6.test.tsFile · 0.90
generateBankingCodeFunction · 0.90
createCustomContextFunction · 0.90

Calls 1

resolveRngFunction · 0.90

Tested by

no test coverage detected