summaryrefslogtreecommitdiffhomepage
path: root/projects/Notepad++
diff options
context:
space:
mode:
authorTommi Sinivuo <[email protected]>2021-09-17 22:26:21 +0300
committerGitHub <[email protected]>2021-09-17 21:26:21 +0200
commit3c55f067a804926f0d145d41601eef6858a138dc (patch)
tree5ac81912b40e266e5ec88c44794917593337214e /projects/Notepad++
parent23fabb1d67515c41984bb31daabb3d3b3f6c88a3 (diff)
downloadraylib-3c55f067a804926f0d145d41601eef6858a138dc.tar.gz
raylib-3c55f067a804926f0d145d41601eef6858a138dc.zip
Add SetRandomSeed(unsigned int seed) function (#1994)
Specifying a fixed seed for the random number generator is often used in games for various reasons. By adding an api function for seeding the random number generator we solve two different problems regarding the seeding: 1) The underlying RNG implementation does not leak to client code (as would be the case if we called srand directly from the client code) 2) Seeding the RNG would be simple from other programming languages (especially in cases where calling libc functions is non-trivial)
Diffstat (limited to 'projects/Notepad++')
0 files changed, 0 insertions, 0 deletions