aboutsummaryrefslogtreecommitdiff
path: root/Makefile.tpl
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-11-04 15:51:37 +0000
committerJonathan Wakely <jwakely@redhat.com>2021-11-09 14:40:33 +0000
commit3439657b02869299685d259c3a77aa38714565b7 (patch)
tree1dab70303e55e7101cdb6bde499de3239cda0cfc /Makefile.tpl
parent8d2d0a6c4391e462555db6d33b2cc00f3da0932f (diff)
downloadgcc-3439657b02869299685d259c3a77aa38714565b7.zip
gcc-3439657b02869299685d259c3a77aa38714565b7.tar.gz
gcc-3439657b02869299685d259c3a77aa38714565b7.tar.bz2
libstdc++: Support getentropy and arc4random in std::random_device
This adds additional "getentropy" and "arc4random" tokens to std::random_device. The former is supported on Glibc and OpenBSD (and apparently wasm), and the latter is supported on various BSDs. libstdc++-v3/ChangeLog: * acinclude.m4 (GLIBCXX_CHECK_GETENTROPY, GLIBCXX_CHECK_ARC4RANDOM): Define. * configure.ac (GLIBCXX_CHECK_GETENTROPY, GLIBCXX_CHECK_ARC4RANDOM): Use them. * config.h.in: Regenerate. * configure: Regenerate. * src/c++11/random.cc (random_device): Add getentropy and arc4random as sources. * testsuite/26_numerics/random/random_device/cons/token.cc: Check new tokens. * testsuite/26_numerics/random/random_device/entropy.cc: Likewise.
Diffstat (limited to 'Makefile.tpl')
0 files changed, 0 insertions, 0 deletions