kdave / btrfs-progs

Development of userspace BTRFS tools
GNU General Public License v2.0
527 stars 239 forks source link

Use crypto libraries for random number generator as well #717

Closed kdave closed 2 months ago

kdave commented 7 months ago

There's a libc provided (pseudo)random generator using /dev/urandom seed and jrand48. When there's a crypto library configured as backend we can use their random number libraries, most of them provide one.

kdave commented 7 months ago

Not necessary until we need a cryptographically strong random numbers for eg. keys or nonces.