cvs: phpweb / mirroring.php
| From: | Gabor Hojtsy | Date: | Wed, 13 Aug 2003 13:35:10 +0000 |
| Subject: | cvs: phpweb / mirroring.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-20212@lists.php.net to get a copy of this message | ||
goba Wed Aug 13 09:35:10 2003 EDT
Modified files:
/phpweb mirroring.php
Log:
More BC seed call
Index: phpweb/mirroring.php
diff -u phpweb/mirroring.php:1.27 phpweb/mirroring.php:1.28
--- phpweb/mirroring.php:1.27 Wed Aug 13 07:06:57 2003
+++ phpweb/mirroring.php Wed Aug 13 09:35:10 2003
@@ -1,11 +1,17 @@
<?php
-// $Id: mirroring.php,v 1.27 2003/08/13 11:06:57 goba Exp $
+// $Id: mirroring.php,v 1.28 2003/08/13 13:35:10 goba Exp $
$_SERVER['BASE_PAGE'] = 'mirroring.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
site_header("Mirroring The PHP Website");
// Get a minute to print out for the cron example
-srand(); $minute = rand(0, 59);
+function make_seed()
+{
+ list($usec, $sec) = explode(' ', microtime());
+ return (float) $sec + ((float) $usec * 100000);
+}
+srand(make_seed());
+$minute = rand(0, 59);
?>
<h1>Mirroring The PHP Website</h1>