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

KarpelesLab / goro / 24621373581
13%

Build:
DEFAULT BRANCH: master
Ran 19 Apr 2026 04:58AM UTC
Jobs 1
Files 370
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

19 Apr 2026 04:57AM UTC coverage: 1.953%. Remained the same
24621373581

push

github

MagicalTux
ext/gmp: give gmp_random_* its own per-request MT19937 state

Previously ext/gmp/misc.go kept the seeded RNG in a package-level
gmpRandSource, which had two problems: (1) a data race when two
goroutines called gmp_random_bits concurrently, and (2) the seed
leaked across script executions — an FPM/httpd request calling
gmp_random_seed() would affect the next request's output.

MT19937 instances are independent; mt19937.New(seed) returns a
fresh *Source each call. Add a Gmp field to core/random.State
alongside Mt, plus a GmpSeed(int64) method that mirrors MtSeed.
Then point gmp_random_* at ctx.Global().Random().Gmp so the state
follows the same per-request lifecycle as mt_rand.

Same fix pattern as the strtok-state move — package globals that
hold request-scoped PHP state get moved onto the Global context.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

0 of 9 new or added lines in 2 files covered. (0.0%)

1 existing line in 1 file now uncovered.

2185 of 111884 relevant lines covered (1.95%)

70.4 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
0.0
0.0% ext/gmp/misc.go
3
0.0
0.0% core/random/rand.go

Coverage Regressions

Lines Coverage ∆ File
1
0.0
0.0% ext/gmp/misc.go
Jobs
ID Job ID Ran Files Coverage
1 24621373581.1 19 Apr 2026 04:58AM UTC 370
1.95
GitHub Action Run
Source Files on build 24621373581
  • Tree
  • List 370
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24621373581
  • 1e3b7807 on github
  • Prev Build on master (#24621249140)
  • Next Build on master (#24621429745)
  • Delete
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