stdcxx: support /dev/urandom

when cpu does not provide sufficient hardware support. (happens on our
nightly test machine as also build machine).

Issue #4094
This commit is contained in:
Alexander Boettcher 2021-05-17 11:34:40 +02:00 committed by Christian Helmuth
parent db97af8dec
commit d4b9be8d44
4 changed files with 4 additions and 4 deletions

View File

@ -1603,7 +1603,7 @@ namespace std
/* Define if /dev/random and /dev/urandom are available for /* Define if /dev/random and /dev/urandom are available for
std::random_device. */ std::random_device. */
/* #undef _GLIBCXX_USE_DEV_RANDOM */ #define _GLIBCXX_USE_DEV_RANDOM 1
/* Define if fchmod is available in <sys/stat.h>. */ /* Define if fchmod is available in <sys/stat.h>. */
#define _GLIBCXX_USE_FCHMOD 1 #define _GLIBCXX_USE_FCHMOD 1

View File

@ -1603,7 +1603,7 @@ namespace std
/* Define if /dev/random and /dev/urandom are available for /* Define if /dev/random and /dev/urandom are available for
std::random_device. */ std::random_device. */
/* #undef _GLIBCXX_USE_DEV_RANDOM */ #define _GLIBCXX_USE_DEV_RANDOM 1
/* Define if fchmod is available in <sys/stat.h>. */ /* Define if fchmod is available in <sys/stat.h>. */
#define _GLIBCXX_USE_FCHMOD 1 #define _GLIBCXX_USE_FCHMOD 1

View File

@ -1603,7 +1603,7 @@ namespace std
/* Define if /dev/random and /dev/urandom are available for /* Define if /dev/random and /dev/urandom are available for
std::random_device. */ std::random_device. */
/* #undef _GLIBCXX_USE_DEV_RANDOM */ #define _GLIBCXX_USE_DEV_RANDOM 1
/* Define if fchmod is available in <sys/stat.h>. */ /* Define if fchmod is available in <sys/stat.h>. */
#define _GLIBCXX_USE_FCHMOD 1 #define _GLIBCXX_USE_FCHMOD 1

View File

@ -1603,7 +1603,7 @@ namespace std
/* Define if /dev/random and /dev/urandom are available for /* Define if /dev/random and /dev/urandom are available for
std::random_device. */ std::random_device. */
/* #undef _GLIBCXX_USE_DEV_RANDOM */ #define _GLIBCXX_USE_DEV_RANDOM 1
/* Define if fchmod is available in <sys/stat.h>. */ /* Define if fchmod is available in <sys/stat.h>. */
#define _GLIBCXX_USE_FCHMOD 1 #define _GLIBCXX_USE_FCHMOD 1