Skip to content

Commit 054196d

Browse files
committed
Amend hash::SipHasher docs to more strongly discourage cryptographic uses
1 parent e36c7da commit 054196d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/libcore/hash/sip.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,9 @@ use super::Hasher;
2727
/// hashing. This lets you key your hashtables from a strong RNG, such
2828
/// as [`rand::Rng`](https://doc.rust-lang.org/rand/rand/trait.Rng.html).
2929
///
30-
/// Although the SipHash algorithm is considered to be cryptographically
31-
/// strong, this implementation has not been reviewed for such purposes.
32-
/// As such, all cryptographic uses of this implementation are _strongly
33-
/// discouraged_.
30+
/// Although the SipHash algorithm is considered to be generally strong,
31+
/// it is not intended for cryptographic purposes. As such, all
32+
/// cryptographic uses of this implementation are _strongly discouraged_.
3433
#[stable(feature = "rust1", since = "1.0.0")]
3534
pub struct SipHasher {
3635
k0: u64,

0 commit comments

Comments
 (0)