# std: fix bug in Pcg32 fill function \(\#13894\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 7d0d99aac0c3e47ab4f82a43525a6f4a18334d43

Requested commit: 7d0d99aac0c3e47ab4f82a43525a6f4a18334d43

Commit: 7d0d99aac0c3e47ab4f82a43525a6f4a18334d43

Tree: 8c6d507606b24bd1faa0e053cf41f422826d69f9

Author: fsh

Committer: Andrew Kelley

## Message

```
std: fix bug in Pcg32 fill function (#13894)

The PCG32 fill function seems to have been copy-pasted from code using u64, so requesting `n` bytes where `(n & 7) > 4` bytes would cause the last few bytes to be all 0.
```

## Parents

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

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