Skip to content

[TS] Implement ctx.random()#3907

Merged
coolreader18 merged 1 commit intomasterfrom
noa/ts-rng
Jan 27, 2026
Merged

[TS] Implement ctx.random()#3907
coolreader18 merged 1 commit intomasterfrom
noa/ts-rng

Conversation

@coolreader18
Copy link
Collaborator

@coolreader18 coolreader18 commented Dec 18, 2025

Description of Changes

Uses the xoroshiro128+ implementation from the pure-rand package.

Expected complexity level and risk

1 - this API is "userspace" only.

Testing

  • Verified that the pcg32 implementation is correct and matches the rust version it's based off of
  • Add a test using ctx.random()

@bfops bfops added the release-any To be landed in any release window label Jan 12, 2026
@coolreader18 coolreader18 force-pushed the noa/ts-rng branch 2 times, most recently from 32b4dee to 7eb175a Compare January 23, 2026 19:20
@coolreader18
Copy link
Collaborator Author

/update_llm_benchmark

@cloutiertyler cloutiertyler added this pull request to the merge queue Jan 26, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 26, 2026
@coolreader18 coolreader18 added this pull request to the merge queue Jan 26, 2026
github-merge-queue bot pushed a commit that referenced this pull request Jan 26, 2026
# Description of Changes

Uses the xoroshiro128+ implementation from the `pure-rand` package.

# Expected complexity level and risk

1 - this API is "userspace" only.

# Testing

<!-- Describe any testing you've done, and any testing you'd like your
reviewers to do,
so that you're confident that all the changes work as expected! -->

- [x] Verified that the pcg32 implementation is correct and matches the
rust version it's based off of
- [ ] Add a test using `ctx.random()`
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 26, 2026
@coolreader18 coolreader18 added this pull request to the merge queue Jan 27, 2026
Merged via the queue into master with commit b181061 Jan 27, 2026
28 checks passed
@coolreader18 coolreader18 deleted the noa/ts-rng branch February 24, 2026 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-any To be landed in any release window

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants