Skip to content

GitLab

    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    • Menu
    Projects Groups Snippets
  • Get a free trial
  • Sign up
  • Login
  • Sign in / Register
  • aGrUM aGrUM
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • agrumery
  • aGrUMaGrUM
  • Issues
  • #82
Closed
Open
Created Jan 25, 2022 by Julien Schueller@jschuellerDeveloper

use <random> instead of rand()

we need something reproductible accross architectures for the random cpt generation,

see randomProba() in tools/core/utils_random_inl.h

rand() does not yield the same values across compilers (the C standard does not specify the implementation)

I successfully tested uniform_real_distribution / mt19937 from (C++11):

https://en.cppreference.com/w/cpp/numeric/random/uniform_real_distribution

Edited Jan 25, 2022 by Julien Schueller
Assignee
Assign to
Time tracking