From: Jonathan Wakely Date: Tue, 11 Jan 2022 21:27:28 +0000 (+0000) Subject: libstdc++: Document new std::random_device tokens X-Git-Tag: basepoints/gcc-13~1742 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f390f11b445ee36cce5c5f1d5779baee817f0af;p=thirdparty%2Fgcc.git libstdc++: Document new std::random_device tokens libstdc++-v3/ChangeLog: * doc/xml/manual/status_cxx2011.xml: Document new tokens accepted by std::random_device constructor. * doc/html/manual/status.html: Regenerate. --- diff --git a/libstdc++-v3/doc/html/manual/status.html b/libstdc++-v3/doc/html/manual/status.html index ad612310b5db..c449fdec928f 100644 --- a/libstdc++-v3/doc/html/manual/status.html +++ b/libstdc++-v3/doc/html/manual/status.html @@ -325,6 +325,19 @@ particular release. instruction to read from an on-chip hardware random number generator. These tokens are only valid for x86 and x86_64 targets when both the assembler and CPU support the corresponding instruction. +
"darn"
+ Use the Power ISA-3.0 DARN + ("Deliver A Random Number") + instruction to read from an on-chip hardware random number generator. + This token is only valid for 64-bit powerpc targets when both + the assembler and CPU support the corresponding instruction. +
"hw", "hardware"
+ Use any available CPU + instruction to read from an on-chip hardware random number generator. + This is equivalent to trying each of the following and using the + first that is supported: + "rdseed""rdrand""darn"
"arc4random", "getentropy"
+ Use the named C library function, if available on the target.
"/dev/urandom", "/dev/random"
Use the named character special file to read random bytes from. These tokens are only valid when the device files are present diff --git a/libstdc++-v3/doc/xml/manual/status_cxx2011.xml b/libstdc++-v3/doc/xml/manual/status_cxx2011.xml index 88844f8f0ccf..1eeb2d1ccd78 100644 --- a/libstdc++-v3/doc/xml/manual/status_cxx2011.xml +++ b/libstdc++-v3/doc/xml/manual/status_cxx2011.xml @@ -2720,6 +2720,36 @@ particular release. the assembler and CPU support the corresponding instruction. + + "darn" + + Use the Power ISA-3.0 DARN + ("Deliver A Random Number") + instruction to read from an on-chip hardware random number generator. + This token is only valid for 64-bit powerpc targets when both + the assembler and CPU support the corresponding instruction. + + + + "hw" + "hardware" + + Use any available CPU + instruction to read from an on-chip hardware random number generator. + This is equivalent to trying each of the following and using the + first that is supported: + "rdseed" + "rdrand" + "darn" + + + + "arc4random" + "getentropy" + + Use the named C library function, if available on the target. + + "/dev/urandom" "/dev/random"