Skip to content

Surface gp_GetRandomNumber and seed its random number generator - #110

Merged
john-boyer-phd merged 1 commit into
masterfrom
Issue89-EAPS-5100-Upgrade
Sep 25, 2026
Merged

john-boyer-phd merged 1 commit into
masterfrom
Issue89-EAPS-5100-Upgrade

Conversation

@john-boyer-phd

Copy link
Copy Markdown
Member

Resolves #90

And progress on #89

Type of change

Please check only relevant options:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Changes

Added

Surfaced _gp_CreateRandomNumber() into the full API from the EAPS 5.1.0.0 code.

Surfaced the C library srand() so it could be called from __init__.py.

Added a demo script that calls _gp_CreateRandomNumber() four times to show the varied numbers it produces.

Testing

Built the wheel, ran the new script.

Without the srand() call, confirmed that multiple runs of the script produce the same varied numbers each time. After adding the srand() call, confirmed that the varied numbers are different varied numbers each time the demo script runs.

@john-boyer-phd
john-boyer-phd merged commit 3e6c274 into master Sep 25, 2026
4 checks passed
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.

Full API: Need to seed the random number generator during initialization

1 participant