# std: Don't hash undefined bits · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/135f4791e5cbffc75f51d404ef1abb6aca5de0e3)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 135f4791e5cbffc75f51d404ef1abb6aca5de0e3

Requested commit: 135f4791e5cbffc75f51d404ef1abb6aca5de0e3

Commit: 135f4791e5cbffc75f51d404ef1abb6aca5de0e3

Tree: 2a604d1357e66578b625ef3843256e78884c76d3

Author: LemonBoy

Committer: LemonBoy

## Message

```
std: Don't hash undefined bits

auto_hash must be extra careful when hashing integers whose bit size is
not a multiple of 8 as, when reinterpreted with mem.asBytes, may contain
undefined non-zero bits too.

```

## Parents

- [9e5869262a5f07300b7f4ff65dfe60810f22afee](https://git.cafe/gitcafe/zig/commit/9e5869262a5f07300b7f4ff65dfe60810f22afee?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/135f4791e5cbffc75f51d404ef1abb6aca5de0e3?format=markdown)
