diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2014-06-23 19:15:40 -0400 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2014-06-30 06:57:05 -0700 |
| commit | 8284ef63a517690a893ffda1083fb966a76b6fbc (patch) | |
| tree | 7b3dcf1d45223093718e3730e61f4384438f4619 /src/libstd/lib.rs | |
| parent | 287dcb77b34b421256c1d9cf26f3101276d2f486 (diff) | |
| download | rust-8284ef63a517690a893ffda1083fb966a76b6fbc.tar.gz rust-8284ef63a517690a893ffda1083fb966a76b6fbc.zip | |
std: make sure HashMap from_iter uses random initialization by default
It turns out that HashMap's from_iter implementation was being initialized without the sip keys being randomized. This adds a custom default hasher that should avoid this potential vulnerability.
Diffstat (limited to 'src/libstd/lib.rs')
| -rw-r--r-- | src/libstd/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index f63e69f3cca..12ad1d64344 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -166,7 +166,6 @@ pub use core::option; pub use alloc::owned; pub use alloc::rc; -pub use core_collections::hash; pub use core_collections::slice; pub use core_collections::str; pub use core_collections::string; @@ -236,6 +235,7 @@ pub mod to_str; /* Common data structures */ pub mod collections; +pub mod hash; /* Tasks and communication */ |
