summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index 711aa889..0cace3a6 100644
--- a/src/core.c
+++ b/src/core.c
@@ -2669,6 +2669,12 @@ int GetRandomValue(int min, int max)
return (rand()%(abs(max - min) + 1) + min);
}
+// Set the seed for the random number generator
+void SetRandomSeed(unsigned int seed)
+{
+ srand(seed);
+}
+
// Check if the file exists
bool FileExists(const char *fileName)
{