summaryrefslogtreecommitdiff
path: root/lang/lua4/files/patch-ab
diff options
context:
space:
mode:
authorcvs2svn <cvs2svn@FreeBSD.org>2003-01-16 05:08:57 +0000
committercvs2svn <cvs2svn@FreeBSD.org>2003-01-16 05:08:57 +0000
commitdf3e7e93b8317ece24fbe7d0c9e4aa1ebb0feca0 (patch)
tree1d9ecedb74d255866c8e1e5df9db0f2739a8ba66 /lang/lua4/files/patch-ab
parentConvert a few more uses of INDEX to ${INDEXFILE} (diff)
This commit was manufactured by cvs2svn to create tag 'RELEASE_5_0_0'.release/5.0.0
Notes
Notes: svn path=/head/; revision=73228 svn path=/tags/RELEASE_5_0_0/; revision=73229; tag=release/5.0.0
Diffstat (limited to 'lang/lua4/files/patch-ab')
-rw-r--r--lang/lua4/files/patch-ab20
1 files changed, 0 insertions, 20 deletions
diff --git a/lang/lua4/files/patch-ab b/lang/lua4/files/patch-ab
deleted file mode 100644
index b7fbfba0f970..000000000000
--- a/lang/lua4/files/patch-ab
+++ /dev/null
@@ -1,20 +0,0 @@
---- src/lib/lmathlib.c.orig Mon Apr 30 00:05:45 2001
-+++ src/lib/lmathlib.c Mon Apr 30 00:06:05 2001
-@@ -168,7 +168,7 @@
- static int math_random (lua_State *L) {
- /* the '%' avoids the (rare) case of r==1, and is needed also because on
- some systems (SunOS!) "rand()" may return a value larger than RAND_MAX */
-- double r = (double)(rand()%RAND_MAX) / (double)RAND_MAX;
-+ double r = (double)(random()%RAND_MAX) / (double)RAND_MAX;
- switch (lua_gettop(L)) { /* check number of arguments */
- case 0: { /* no arguments */
- lua_pushnumber(L, r); /* Number between 0 and 1 */
-@@ -194,7 +194,7 @@
-
-
- static int math_randomseed (lua_State *L) {
-- srand(luaL_check_int(L, 1));
-+ srandom(luaL_check_int(L, 1));
- return 0;
- }
-