root icon indicating copy to clipboard operation
root copied to clipboard

[core] Fallback to urandom for increased compatibility

Open vepadulano opened this issue 1 year ago • 2 comments

Systems with older versions of glibc do not have modern functions to get cryptographically secure random numbers. Introduce a fallback to using /dev/urandom in such cases. A notable example is the conda-build environment which is based on Centos7 where the glibc version is 2.17

This change is required to fix the conda build, so it must be backported to 6.32

vepadulano avatar May 06 '24 10:05 vepadulano

Test Results

     9 files       9 suites   1d 19h 0m 46s :stopwatch:  2 631 tests  2 631 :white_check_mark: 0 :zzz: 0 :x: 22 303 runs  22 303 :white_check_mark: 0 :zzz: 0 :x:

Results for commit ced06d1c.

:recycle: This comment has been updated with latest results.

github-actions[bot] avatar May 06 '24 11:05 github-actions[bot]

I have updated the commit to also include a test inside the code run at configuration time by cmake (same test as CryptoRandom from TSystemTests.cxx)

vepadulano avatar May 06 '24 19:05 vepadulano