Skip to content

Commit

Permalink
Remove incorrect claim HashMap is avail in no_std
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronelliott committed Nov 8, 2022
1 parent c533348 commit 9a2bd74
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/intro/no-std.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ bootstrapping (stage 0) code like bootloaders, firmware or kernels.
| feature | no\_std | std |
|-----------------------------------------------------------|--------|-----|
| heap (dynamic memory) | * ||
| collections (Vec, HashMap, etc) | ** ||
| collections (Vec, BTreeMap, etc) | ** ||
| stack overflow protection |||
| runs init code before main |||
| libstd available |||
Expand All @@ -58,6 +58,8 @@ bootstrapping (stage 0) code like bootloaders, firmware or kernels.

\** Only if you use the `collections` crate and configure a global default allocator.

\** HashMap and HashSet are not available due to a lack of a secure random number generator.

[alloc-cortex-m]: https://github.com/rust-embedded/alloc-cortex-m

## See Also
Expand Down

1 comment on commit 9a2bd74

@jmole
Copy link

@jmole jmole commented on 9a2bd74 May 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is the security of an RNG relevant to having a HashMap/HashSet implementation?

Please sign in to comment.