diff options
| author | Léo Lam <leo@innovatetechnologi.es> | 2018-05-21 15:48:17 +0200 |
|---|---|---|
| committer | Léo Lam <leo@innovatetechnologi.es> | 2018-05-31 17:54:43 +0200 |
| commit | fff1db973096a893475f3ec96ee6f28e35c4a67c (patch) | |
| tree | 5b92984b635bab59a2639cc06ce9860a534df23e /Source/Core/VideoCommon/VertexLoader_Normal.cpp | |
| parent | dd77ace56ada6cd7c394b39105a61b61905e5822 (diff) | |
Common: Add Random utilities
This makes it easier to generate random numbers or fill a buffer with
random data in a cryptographically secure way.
This also replaces existing usages of RNG functions in the codebase:
* <random> is pretty hard to use correctly, and std::random_device does
not give enough guarantees about its results (it's
implementation-defined, non cryptographically secure and could be
deterministic on some platforms).
Doing things correctly is error prone and verbose.
* rand() is terrible and should not be used especially in crypto code.
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader_Normal.cpp')
0 files changed, 0 insertions, 0 deletions
