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

moonbitlang / core / 6792
89%

Build:
DEFAULT BRANCH: main
Ran 25 Sep 2026 09:13AM UTC
Jobs 1
Files 448
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

25 Sep 2026 09:11AM UTC coverage: 89.712%. Remained the same
6792

push

github

bobzhang
refactor(random, splitmix): add Rand() and RandomState() constructors

Core has moved type construction to `T(...)` (StringBuilder, Hasher,
Buffer, Ref, argparse, the collections), but the two random number
generators went in opposite directions and neither had a constructor:
`@splitmix` deprecated the method `RandomState::new` in favour of a
free `new`, while `@random` deprecated its free `new` in favour of the
method `Rand::new`.

- `Rand::Rand(generator?)` replaces `Rand::new`, which stays as a
  deprecated alias. `Rand::chacha8(seed?)` remains the named
  constructor for a seeded generator. `Rand` was a tuple struct whose
  constructor reserved the name, so its field is now named (`source`);
  the type is abstract, so the interface is otherwise unchanged.
- `RandomState::RandomState(seed?)` replaces the free
  `@splitmix.new`, which stays callable as a deprecated free function;
  the deprecated `RandomState::new` now points at `RandomState()`.

Migrate in-repo callers.

Part of #4272.

Codex review: "No blocking issues found. Constructor behavior, seed defaults, deprecated aliases, call-site migrations, and documentation are consistent."

Signed-off-by: Codex CLI <codex@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

7 of 7 new or added lines in 5 files covered. (100.0%)

16498 of 18390 relevant lines covered (89.71%)

314699.83 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6792.1 25 Sep 2026 09:13AM UTC 448
89.71
GitHub Action Run
Source Files on build 6792
  • Tree
  • List 448
  • Changed 9
  • Source Changed 9
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • e2bf1cff on github
  • Prev Build on main (#6787)
  • Next Build on main (#6795)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc