• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

philihp / pcg / 26158319794
100%

Build:
DEFAULT BRANCH: main
Ran 20 May 2026 11:02AM UTC
Jobs 1
Files 7
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 May 2026 11:02AM UTC coverage: 99.565% (+0.02%) from 99.541%
26158319794

push

github

web-flow
Add mulberry32 as another variant (#338)

* feat: add mulberry32 as another variant

Adds a small 32-bit counter-based PRNG (Tommy Ettinger's mulberry32) as an
additional variant alongside pcg32. State is tagged via the existing
PCGVariant field and plugs into the same nextState, getOutput, randomInt,
randomList, and stepState functions.

* revert README changes from this branch

* refactor: split pcg32 algorithm into its own module

Renames createPcg.ts to pcg32.ts so it mirrors the structure of
mulberry32.ts: each module exports `<variant>Advance(pcg, delta)`,
`<variant>Output(pcg)`, and a `create<Variant>` factory. The variant-
dispatched `nextState`, `getOutput`, `stepState`, `prevState`, and the
generic `randomInt` / `randomList` utilities now live in index.ts.

* refactor: dispatch variants through a registry table

Replaces the if/else ternary in advance and output with a
Record<PCGVariant, VariantImpl> table. Adding a new variant now means
adding one row to VARIANTS rather than editing two dispatch sites.

---------

Co-authored-by: Claude <noreply@anthropic.com>

45 of 46 branches covered (97.83%)

Branch coverage included in aggregate %.

65 of 65 new or added lines in 3 files covered. (100.0%)

184 of 184 relevant lines covered (100.0%)

20281.1 hits per line

Jobs
ID Job ID Ran Files Coverage
1 26158319794.1 20 May 2026 11:02AM UTC 7
99.57
GitHub Action Run
Source Files on build 26158319794
  • Tree
  • List 7
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • dd488ffa on github
  • Prev Build on main (#26155529220)
  • Next Build on main (#26158924986)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc