From b5aa889f7fced8ba2cc1698ae9696d7bd0ca8ab5 Mon Sep 17 00:00:00 2001 From: garhve Date: Tue, 20 Dec 2022 11:07:35 +0800 Subject: remove compiled binary --- .../target/doc/rand/rngs/adapter/index.html | 5 -- .../rand/rngs/adapter/read/struct.ReadError.html | 11 ---- .../doc/rand/rngs/adapter/read/struct.ReadRng.html | 11 ---- .../adapter/reseeding/struct.ReseedingRng.html | 11 ---- .../target/doc/rand/rngs/adapter/sidebar-items.js | 1 - .../doc/rand/rngs/adapter/struct.ReadError.html | 8 --- .../doc/rand/rngs/adapter/struct.ReadRng.html | 17 ------ .../doc/rand/rngs/adapter/struct.ReseedingRng.html | 61 ---------------------- 8 files changed, 125 deletions(-) delete mode 100644 rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/rngs/adapter/index.html delete mode 100644 rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/rngs/adapter/read/struct.ReadError.html delete mode 100644 rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/rngs/adapter/read/struct.ReadRng.html delete mode 100644 rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/rngs/adapter/reseeding/struct.ReseedingRng.html delete mode 100644 rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/rngs/adapter/sidebar-items.js delete mode 100644 rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/rngs/adapter/struct.ReadError.html delete mode 100644 rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/rngs/adapter/struct.ReadRng.html delete mode 100644 rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/rngs/adapter/struct.ReseedingRng.html (limited to 'rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/rngs/adapter') diff --git a/rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/rngs/adapter/index.html b/rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/rngs/adapter/index.html deleted file mode 100644 index 0851869..0000000 --- a/rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/rngs/adapter/index.html +++ /dev/null @@ -1,5 +0,0 @@ -rand::rngs::adapter - Rust
Expand description

Wrappers / adapters forming RNGs

-

Structs

ReadErrorDeprecated
ReadRng error type
ReadRngDeprecated
An RNG that reads random bytes straight from any type supporting -std::io::Read, for example files.
A wrapper around any PRNG that implements BlockRngCore, that adds the -ability to reseed it.
\ No newline at end of file diff --git a/rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/rngs/adapter/read/struct.ReadError.html b/rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/rngs/adapter/read/struct.ReadError.html deleted file mode 100644 index 47e82f7..0000000 --- a/rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/rngs/adapter/read/struct.ReadError.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - Redirection - - -

Redirecting to ../../../../rand/rngs/adapter/struct.ReadError.html...

- - - \ No newline at end of file diff --git a/rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/rngs/adapter/read/struct.ReadRng.html b/rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/rngs/adapter/read/struct.ReadRng.html deleted file mode 100644 index 4b28717..0000000 --- a/rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/rngs/adapter/read/struct.ReadRng.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - Redirection - - -

Redirecting to ../../../../rand/rngs/adapter/struct.ReadRng.html...

- - - \ No newline at end of file diff --git a/rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/rngs/adapter/reseeding/struct.ReseedingRng.html b/rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/rngs/adapter/reseeding/struct.ReseedingRng.html deleted file mode 100644 index a8ab2b3..0000000 --- a/rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/rngs/adapter/reseeding/struct.ReseedingRng.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - Redirection - - -

Redirecting to ../../../../rand/rngs/adapter/struct.ReseedingRng.html...

- - - \ No newline at end of file diff --git a/rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/rngs/adapter/sidebar-items.js b/rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/rngs/adapter/sidebar-items.js deleted file mode 100644 index 8c43fd4..0000000 --- a/rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/rngs/adapter/sidebar-items.js +++ /dev/null @@ -1 +0,0 @@ -window.SIDEBAR_ITEMS = {"struct":[["ReadError","`ReadRng` error type"],["ReadRng","An RNG that reads random bytes straight from any type supporting [`std::io::Read`], for example files."],["ReseedingRng","A wrapper around any PRNG that implements `BlockRngCore`, that adds the ability to reseed it."]]}; \ No newline at end of file diff --git a/rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/rngs/adapter/struct.ReadError.html b/rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/rngs/adapter/struct.ReadError.html deleted file mode 100644 index 6f8c745..0000000 --- a/rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/rngs/adapter/struct.ReadError.html +++ /dev/null @@ -1,8 +0,0 @@ -ReadError in rand::rngs::adapter - Rust
pub struct ReadError(_);
👎Deprecated since 0.8.4
Expand description

ReadRng error type

-

Trait Implementations

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
The lower-level source of this error, if any. Read more
👎Deprecated since 1.42.0: use the Display impl or to_string()
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

-

Calls U::from(self).

-

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to -provide by using demand. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
\ No newline at end of file diff --git a/rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/rngs/adapter/struct.ReadRng.html b/rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/rngs/adapter/struct.ReadRng.html deleted file mode 100644 index 304265d..0000000 --- a/rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/rngs/adapter/struct.ReadRng.html +++ /dev/null @@ -1,17 +0,0 @@ -ReadRng in rand::rngs::adapter - Rust
pub struct ReadRng<R> { /* private fields */ }
👎Deprecated since 0.8.4: removal due to lack of usage
Expand description

An RNG that reads random bytes straight from any type supporting -std::io::Read, for example files.

-

This will work best with an infinite reader, but that is not required.

-

This can be used with /dev/urandom on Unix but it is recommended to use -OsRng instead.

-

Panics

-

ReadRng uses std::io::Read::read_exact, which retries on interrupts. -All other errors from the underlying reader, including when it does not -have enough data, will only be reported through try_fill_bytes. -The other RngCore methods will panic in case of an error.

-

Implementations

Create a new ReadRng from a Read.

-

Trait Implementations

Formats the value using the given formatter. Read more
Return the next random u32. Read more
Return the next random u64. Read more
Fill dest with random data. Read more
Fill dest entirely with random data. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

-

Calls U::from(self).

-

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
\ No newline at end of file diff --git a/rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/rngs/adapter/struct.ReseedingRng.html b/rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/rngs/adapter/struct.ReseedingRng.html deleted file mode 100644 index 132e1d3..0000000 --- a/rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/rngs/adapter/struct.ReseedingRng.html +++ /dev/null @@ -1,61 +0,0 @@ -ReseedingRng in rand::rngs::adapter - Rust
pub struct ReseedingRng<R, Rsdr>(_)
where
    R: BlockRngCore + SeedableRng,
    Rsdr: RngCore
;
Expand description

A wrapper around any PRNG that implements BlockRngCore, that adds the -ability to reseed it.

-

ReseedingRng reseeds the underlying PRNG in the following cases:

-
    -
  • On a manual call to reseed().
  • -
  • After clone(), the clone will be reseeded on first use.
  • -
  • When a process is forked on UNIX, the RNGs in both the parent and child -processes will be reseeded just before the next call to -BlockRngCore::generate, i.e. “soon”. For ChaCha and Hc128 this is a -maximum of fifteen u32 values before reseeding.
  • -
  • After the PRNG has generated a configurable number of random bytes.
  • -
-

When should reseeding after a fixed number of generated bytes be used?

-

Reseeding after a fixed number of generated bytes is never strictly -necessary. Cryptographic PRNGs don’t have a limited number of bytes they -can output, or at least not a limit reachable in any practical way. There is -no such thing as ‘running out of entropy’.

-

Occasionally reseeding can be seen as some form of ‘security in depth’. Even -if in the future a cryptographic weakness is found in the CSPRNG being used, -or a flaw in the implementation, occasionally reseeding should make -exploiting it much more difficult or even impossible.

-

Use ReseedingRng::new with a threshold of 0 to disable reseeding -after a fixed number of generated bytes.

-

Limitations

-

It is recommended that a ReseedingRng (including ThreadRng) not be used -from a fork handler. -Use OsRng or getrandom, or defer your use of the RNG until later.

-

Error handling

-

Although unlikely, reseeding the wrapped PRNG can fail. ReseedingRng will -never panic but try to handle the error intelligently through some -combination of retrying and delaying reseeding until later. -If handling the source error fails ReseedingRng will continue generating -data from the wrapped PRNG without reseeding.

-

Manually calling reseed() will not have this retry or delay logic, but -reports the error.

-

Example

-
use rand::prelude::*;
-use rand_chacha::ChaCha20Core; // Internal part of ChaChaRng that
-                             // implements BlockRngCore
-use rand::rngs::OsRng;
-use rand::rngs::adapter::ReseedingRng;
-
-let prng = ChaCha20Core::from_entropy();
-let mut reseeding_rng = ReseedingRng::new(prng, 0, OsRng);
-
-println!("{}", reseeding_rng.gen::<u64>());
-
-let mut cloned_rng = reseeding_rng.clone();
-assert!(reseeding_rng.gen::<u64>() != cloned_rng.gen::<u64>());
-

Implementations

Create a new ReseedingRng from an existing PRNG, combined with a RNG -to use as reseeder.

-

threshold sets the number of generated bytes after which to reseed the -PRNG. Set it to zero to never reseed based on the number of generated -values.

-

Reseed the internal PRNG.

-

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Return the next random u32. Read more
Return the next random u64. Read more
Fill dest with random data. Read more
Fill dest entirely with random data. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Upcast to an RngCore trait object.

Returns the argument unchanged.

-

Calls U::from(self).

-

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
\ No newline at end of file -- cgit v1.2.3-70-g09d2