Skip to content

Commit 46dc35e

Browse files
committed
Link to actual CSPRNG in hash::SipHasher documentation
1 parent 054196d commit 46dc35e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libcore/hash/sip.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ use super::Hasher;
1919
///
2020
/// See: http://131002.net/siphash/
2121
///
22-
/// This is the default hashing function used by standard library (eg.
23-
/// `collections::HashMap` uses it by default).
22+
/// This is currently the default hashing function used by standard library
23+
/// (eg. `collections::HashMap` uses it by default).
2424
///
2525
/// SipHash is a general-purpose hashing function: it runs at a good
2626
/// speed (competitive with Spooky and City) and permits strong _keyed_
27-
/// hashing. This lets you key your hashtables from a strong RNG, such
28-
/// as [`rand::Rng`](https://doc.rust-lang.org/rand/rand/trait.Rng.html).
27+
/// hashing. This lets you key your hashtables from a strong RNG, such as
28+
/// [`rand::os::OsRng`](https://doc.rust-lang.org/rand/rand/os/struct.OsRng.html).
2929
///
3030
/// Although the SipHash algorithm is considered to be generally strong,
3131
/// it is not intended for cryptographic purposes. As such, all

0 commit comments

Comments
 (0)