{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreif4w7ml2a4xn63nctf34lqv4f33zmv5gtf2vofr7zlehaefan6ze4",
    "uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mj6tbs27vy22"
  },
  "path": "/t/alloc-only-hashmap/24071#post_18",
  "publishedAt": "2026-04-10T21:15:41.000Z",
  "site": "https://internals.rust-lang.org",
  "textContent": "I don't know why you're focusing so much on randomness when nothing in my post requires any random input.\n\nIn `std`'s current `HashMap`, the `RandomState` default implementation requires randomness, but I can provide my own argument that does whatever I want, which may or may not involve randomness.\n\nMy proposal was that code with only `alloc` would be able to use `HashMap`s but would have to provide an explicit `BuildHasher`. This could pull in randomness from some source, or depending on the code it might not need randomness at all if the keys are trusted input data.",
  "title": "`alloc`-only `HashMap`?"
}