php4-beta | 200004
Date: 04/22/00
- Next message: Andi Gutmans: "Re: [PHP4BETA] PHP ticks"
- Previous message: Andrei Zmievski: "Re: [PHP4BETA] PHP ticks"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
andi Sat Apr 22 08:45:06 2000 EDT
Modified files:
/php4/ext/standard php_rand.h rand.c
Log:
- In Windows RAND_MAX is defined in stdlib.h
- Get rid of comment which is confusing.
Index: php4/ext/standard/php_rand.h
diff -u php4/ext/standard/php_rand.h:1.3 php4/ext/standard/php_rand.h:1.4
--- php4/ext/standard/php_rand.h:1.3 Sat Feb 19 15:41:21 2000
+++ php4/ext/standard/php_rand.h Sat Apr 22 08:44:35 2000
@@ -19,10 +19,12 @@
| Based on code from: Shawn Cokus <Cokus <email protected>> |
+----------------------------------------------------------------------+
*/
-/* $Id: php_rand.h,v 1.3 2000/02/19 23:41:21 zeev Exp $ */
+/* $Id: php_rand.h,v 1.4 2000/04/22 15:44:35 andi Exp $ */
#ifndef _PHP_RAND_H
#define _PHP_RAND_H
+
+#include <stdlib.h>
#ifndef RAND_MAX
#define RAND_MAX (1<<15)
Index: php4/ext/standard/rand.c
diff -u php4/ext/standard/rand.c:1.14 php4/ext/standard/rand.c:1.15
--- php4/ext/standard/rand.c:1.14 Sat Apr 22 08:40:23 2000
+++ php4/ext/standard/rand.c Sat Apr 22 08:44:35 2000
@@ -19,7 +19,7 @@
| Based on code from: Shawn Cokus <Cokus <email protected>> |
+----------------------------------------------------------------------+
*/
-/* $Id: rand.c,v 1.14 2000/04/22 15:40:23 andi Exp $ */
+/* $Id: rand.c,v 1.15 2000/04/22 15:44:35 andi Exp $ */
#include <stdlib.h>
@@ -92,7 +92,6 @@
#define loBits(u) ((u) & 0x7FFFFFFFU) /* mask the highest bit of u */
#define mixBits(u, v) (hiBit(u)|loBits(v)) /* move hi bit of u to hi bit of v */
-/* Could be 1<<32 but for some reason it has been used as 1<<31 in the past */
#define MT_RAND_MAX ((unsigned long)((1<<31)-1))
static void seedMT(php_uint32 seed BLS_DC)
-- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe <email protected> For additional commands, e-mail: php4beta-help <email protected> To contact the list administrators, e-mail: php4beta-admin <email protected>
- Next message: Andi Gutmans: "Re: [PHP4BETA] PHP ticks"
- Previous message: Andrei Zmievski: "Re: [PHP4BETA] PHP ticks"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

