Skip to content

Engine: General updates to xirand#9494

Merged
zach2good merged 1 commit into
basefrom
general_xirand_updates
Feb 19, 2026
Merged

Engine: General updates to xirand#9494
zach2good merged 1 commit into
basefrom
general_xirand_updates

Conversation

@zach2good
Copy link
Copy Markdown
Contributor

I affirm:

  • I understand that if I do not agree to the following points by completing the checkboxes my PR will be ignored.
  • I understand I should leave resolving conversations to the LandSandBoat team so that reviewers won't miss what was said.
  • I have read and understood the Contributing Guide and the Code of Conduct.
  • I have tested my code and the things my code has changed since the last commit in the PR and will test after any later commits.

What does this pull request do?

  • Clears up definitions and selections of different random engines
  • All engines go through the same get and auto-seed routine, using a 4k initial seed sequence.
  • All engines are guaranteed to be properly seeded when accessed from any thread
  • Tidied up the API for xirand, and added a new weighted selection API
  • Added Squirrel5 Random Engine (thanks for the recommendation JMC!)
  • Added many comments and explanations
  • Verified that other game server implementations also use MT/MT64/SIMD variants of MT, etc.

@zach2good zach2good force-pushed the general_xirand_updates branch from b28a1a0 to d51efab Compare February 19, 2026 13:14
- Clears up definitions and selections of different random engines
- All engines go through the same get and auto-seed routine, using a 4k initial seed sequence.
- All engines are guaranteed to be properly seeded when accessed from any thread
- Tidied up the API for xirand, and added a new weighted selection API
- Added Squirrel5 Random Engine (thanks for the recommendation JMC!)
- Added many comments and explanations
- Verified that other game server implementations also use MT/MT64/SIMD variants of MT, etc.

Co-Authored-By: Jasson McMorris <jmcmorris@users.noreply.github.com>
@zach2good zach2good force-pushed the general_xirand_updates branch from d51efab to 77ba9d9 Compare February 19, 2026 14:33
@zach2good zach2good merged commit ccbad99 into base Feb 19, 2026
10 checks passed
@zach2good zach2good deleted the general_xirand_updates branch February 19, 2026 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants