# windows: use ProcessPrng from bcryptprimitives.dll · gitcafe/zig

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

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

Visibility: public

Requested revision: 60e2ea0bfbb8a8ae2df31a8e45ef8c416a9ff77e

Requested commit: 60e2ea0bfbb8a8ae2df31a8e45ef8c416a9ff77e

Commit: 60e2ea0bfbb8a8ae2df31a8e45ef8c416a9ff77e

Tree: c221bd13b362fbc0161260bb41fe94c16bdb9bb4

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
windows: use ProcessPrng from bcryptprimitives.dll

rather than SystemFunction036 from advapi32. This has the advantage that
the code is loaded preemptively, preventing random numbers from
failing when they are needed for the first time on a system under heavy
load.

```

## Parents

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

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