aboutsummaryrefslogtreecommitdiff
path: root/lmathlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lmathlib.c')
-rw-r--r--lmathlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lmathlib.c b/lmathlib.c
index 8b8babaa..c62b88c4 100644
--- a/lmathlib.c
+++ b/lmathlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lmathlib.c,v 1.8 1997/12/26 18:36:31 roberto Exp roberto $ 2** $Id: lmathlib.c,v 1.9 1998/05/27 19:09:39 roberto Exp roberto $
3** Lua standard mathematical library 3** Lua standard mathematical library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -155,7 +155,7 @@ static void math_max (void)
155 155
156static void math_random (void) 156static void math_random (void)
157{ 157{
158 /* the '%' is needed because on some sistems (SunOS!) "rand()" may */ 158 /* the '%' is needed because on some systems (SunOS!) "rand()" may */
159 /* return a value bigger than RAND_MAX... */ 159 /* return a value bigger than RAND_MAX... */
160 double r = (double)(rand()%RAND_MAX) / (double)RAND_MAX; 160 double r = (double)(rand()%RAND_MAX) / (double)RAND_MAX;
161 double l = luaL_opt_number(1, 0); 161 double l = luaL_opt_number(1, 0);