SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,16 @@
--- src/lmathlib.c.orig Mon Jan 12 14:06:55 2015
+++ src/lmathlib.c Mon Jan 12 14:07:08 2015
@@ -26,11 +26,11 @@
#if !defined(l_rand) /* { */
#if defined(LUA_USE_POSIX)
#define l_rand() random()
-#define l_srand(x) srandom(x)
+#define l_srand(x) srandom_deterministic(x)
#define L_RANDMAX 2147483647 /* (2^31 - 1), following POSIX */
#else
#define l_rand() rand()
-#define l_srand(x) srand(x)
+#define l_srand(x) srand_deterministic(x)
#define L_RANDMAX RAND_MAX
#endif
#endif /* } */