Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Kea Kea
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 505
    • Issues 505
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 53
    • Merge requests 53
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • ISC Open Source Projects
  • KeaKea
  • Issues
  • #1776
Closed
Open
Created Mar 29, 2021 by Francis Dupont@fdupontDeveloper

Move to system (vs autoseeded) RNG on Botan

On Botan we use the autoseeded RNG when on all supported platforms we can use the system RNG. This also works better in a multi threaded environment: on old Botan stateful RNGs including the autoseeded one are not MT safe, on recent (>= 2.16, the last when I write this 2.17.3) versions they are MT safes but for performance it is recommended to make them thread local...

The define to use in the code is BOTAN_HAS_SYSTEM_RNG, include is system_rng.h and the class System_RNG.

BTW IMHO the best should be to use the processor RNG but it is recent and can be tested only at runtime...

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking