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

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

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

Visibility: public

Requested revision: e0ba8b8ae5237f8b6da1d19c1088f756fd51eb57

Requested commit: e0ba8b8ae5237f8b6da1d19c1088f756fd51eb57

Commit: e0ba8b8ae5237f8b6da1d19c1088f756fd51eb57

Tree: a3f779760411a0916766a3b2378a5c1c294d9ad6

Author: fsh

Committer: GitHub

## 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

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

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