raylib/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Tommi Sinivuo 3c55f067a8
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)
2021-09-17 21:26:21 +02:00
..
external REVIEWED: Vox loader 2021-09-10 15:37:31 +02:00
extras Prevent INVALID_SOCKET to be defined twice on linux (#1993) 2021-09-17 01:05:38 +02:00
camera.h Fixes target direction for first person camera mode. (#1977) 2021-09-10 11:51:59 +02:00
CMakeLists.txt Update CMakeLists.txt 2021-05-31 12:27:26 +02:00
config.h REVIEWED: Touch input system #1975 #1960 2021-09-10 15:19:12 +02:00
core.c Add SetRandomSeed(unsigned int seed) function (#1994) 2021-09-17 21:26:21 +02:00
gestures.h REVIEWED: Touch input system #1975 #1960 2021-09-10 15:19:12 +02:00
Makefile Update Makefile for web compilation 2021-09-10 19:01:09 +02:00
models.c REVIEWED: Vox loader 2021-09-10 15:37:31 +02:00
raudio.c REVIEWED: <name>Count for consistency 2021-09-01 23:09:30 +02:00
raudio.h WARNING: BREAKING: Use frameCount on audio 2021-08-16 11:06:31 +02:00
raylib.dll.rc Update resource files 2021-04-09 00:20:43 +02:00
raylib.dll.rc.data Update resource files 2021-04-09 00:20:43 +02:00
raylib.h Add SetRandomSeed(unsigned int seed) function (#1994) 2021-09-17 21:26:21 +02:00
raylib.ico Updated icon data 2018-09-26 16:02:42 +02:00
raylib.rc Update resource files 2021-04-09 00:20:43 +02:00
raylib.rc.data Update resource files 2021-04-09 00:20:43 +02:00
raymath.h Remove trailing spaces 2021-08-16 23:23:16 +02:00
rglfw.c Update year to 2021 2021-01-02 18:15:13 +01:00
rlgl.h REVIEWED: Naming: length vs size 2021-09-01 23:40:51 +02:00
shapes.c REVIEWED: <name>Count for consistency 2021-09-01 23:09:30 +02:00
shell.html Update shell.html 2021-09-03 15:24:05 +02:00
text.c Review font loading log info 2021-09-10 15:16:34 +02:00
textures.c REVIEWED: Naming: length vs size 2021-09-01 23:40:51 +02:00
utils.c REVERTED: Removed the need for rlMatrix 2021-07-30 12:54:54 +02:00
utils.h REVIEWED: extern "C" definition position for consistency 2021-08-15 13:02:53 +02:00