rollup merge of #19868: sourcefrog/master
The rendered form in http://doc.rust-lang.org/nightly/std/rand/struct.OsRng.html looks wrong.
This commit is contained in:
@@ -117,7 +117,8 @@ mod imp {
|
|||||||
/// `/dev/urandom`, or from `getrandom(2)` system call if available.
|
/// `/dev/urandom`, or from `getrandom(2)` system call if available.
|
||||||
/// - Windows: calls `CryptGenRandom`, using the default cryptographic
|
/// - Windows: calls `CryptGenRandom`, using the default cryptographic
|
||||||
/// service provider with the `PROV_RSA_FULL` type.
|
/// service provider with the `PROV_RSA_FULL` type.
|
||||||
/// - iOS: calls SecRandomCopyBytes as /dev/(u)random is sandboxed
|
/// - iOS: calls SecRandomCopyBytes as /dev/(u)random is sandboxed.
|
||||||
|
///
|
||||||
/// This does not block.
|
/// This does not block.
|
||||||
pub struct OsRng {
|
pub struct OsRng {
|
||||||
inner: OsRngInner,
|
inner: OsRngInner,
|
||||||
@@ -184,7 +185,8 @@ mod imp {
|
|||||||
/// `/dev/urandom`, or from `getrandom(2)` system call if available.
|
/// `/dev/urandom`, or from `getrandom(2)` system call if available.
|
||||||
/// - Windows: calls `CryptGenRandom`, using the default cryptographic
|
/// - Windows: calls `CryptGenRandom`, using the default cryptographic
|
||||||
/// service provider with the `PROV_RSA_FULL` type.
|
/// service provider with the `PROV_RSA_FULL` type.
|
||||||
/// - iOS: calls SecRandomCopyBytes as /dev/(u)random is sandboxed
|
/// - iOS: calls SecRandomCopyBytes as /dev/(u)random is sandboxed.
|
||||||
|
///
|
||||||
/// This does not block.
|
/// This does not block.
|
||||||
#[allow(missing_copy_implementations)]
|
#[allow(missing_copy_implementations)]
|
||||||
pub struct OsRng {
|
pub struct OsRng {
|
||||||
@@ -256,7 +258,8 @@ mod imp {
|
|||||||
/// `/dev/urandom`, or from `getrandom(2)` system call if available.
|
/// `/dev/urandom`, or from `getrandom(2)` system call if available.
|
||||||
/// - Windows: calls `CryptGenRandom`, using the default cryptographic
|
/// - Windows: calls `CryptGenRandom`, using the default cryptographic
|
||||||
/// service provider with the `PROV_RSA_FULL` type.
|
/// service provider with the `PROV_RSA_FULL` type.
|
||||||
/// - iOS: calls SecRandomCopyBytes as /dev/(u)random is sandboxed
|
/// - iOS: calls SecRandomCopyBytes as /dev/(u)random is sandboxed.
|
||||||
|
///
|
||||||
/// This does not block.
|
/// This does not block.
|
||||||
pub struct OsRng {
|
pub struct OsRng {
|
||||||
hcryptprov: HCRYPTPROV
|
hcryptprov: HCRYPTPROV
|
||||||
|
|||||||
Reference in New Issue
Block a user