Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 426
    • Issues 426
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Merge requests
  • !107

Updated random numbers

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Admin requested to merge feature-random-numbers into develop Apr 28, 2017
  • Overview 0
  • Commits 6
  • Changes 100+

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.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feature-random-numbers