Skip to content
Snippets Groups Projects

Updated random numbers

Merged Admin requested to merge feature-random-numbers into develop

Previously there were 2 random number generator classes - Random and cachedRandom. These have been consolidated by:

  • removing/deprecating the Random class
  • renaming the cachedRandom class to Random

The Random class now stores its own buffer and uses the re-entrant system random functions so that each instantiation is not affected by each call to (re-)initialise the random number seed. The caching of the random numbers is not required since the generator can be reset using the same initial seed.

Merge request reports

Approval is optional

Merged by (Apr 17, 2025 1:26pm UTC)

Merge details

  • Changes merged into develop with c886dc44.
  • Deleted the source branch.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Admin added 1 commit

    added 1 commit

    • ab165237 - ENH: turbulentDFSEMInlet - ensure different procs initialise the random number g…

    Compare with previous version

    By Andrew Heather on 2017-04-28T09:01:54 (imported from GitLab project)

  • Admin mentioned in commit c886dc4487f6582ce208164df4f57f76e5017d77

    mentioned in commit c886dc4487f6582ce208164df4f57f76e5017d77

    By Andrew Heather on 2017-04-28T09:11:19 (imported from GitLab project)

  • merged

    By Andrew Heather on 2017-04-28T09:11:19 (imported from GitLab project)

Please register or sign in to reply