File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -19,15 +19,18 @@ use super::Hasher;
19
19
///
20
20
/// See: http://131002.net/siphash/
21
21
///
22
- /// Consider this as a main "general-purpose" hash for all hashtables: it
23
- /// runs at good speed (competitive with spooky and city) and permits
24
- /// strong _keyed_ hashing. Key your hashtables from a strong RNG,
25
- /// such as `rand::Rng`.
22
+ /// This is the default hashing function used by standard library (eg.
23
+ /// `collections::HashMap` uses it by default).
24
+ ///
25
+ /// SipHash is a general-purpose hashing function: it runs at a good
26
+ /// 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).
26
29
///
27
30
/// Although the SipHash algorithm is considered to be cryptographically
28
31
/// strong, this implementation has not been reviewed for such purposes.
29
- /// As such, all cryptographic uses of this implementation are strongly
30
- /// discouraged .
32
+ /// As such, all cryptographic uses of this implementation are _strongly
33
+ /// discouraged_ .
31
34
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
32
35
pub struct SipHasher {
33
36
k0 : u64 ,
You can’t perform that action at this time.
0 commit comments