With fixed seed, change the page every month.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 21 Oct 2008 07:46:27 +0000 (09:46 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 21 Oct 2008 07:46:27 +0000 (09:46 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/poison/poison.inc.php

index 3e9b471..eae4b16 100644 (file)
@@ -26,7 +26,7 @@ function get_poison_emails($seed, $count)
     $fd   = fopen($globals->poison->file, 'r');
     $size = fstat($fd);
     $size = $size['size'];
-    $seed = crc32($seed) % $size;
+    $seed = crc32($seed . date('m-Y')) % $size;
     if ($seed < 0) {
         $seed = $size + $seed;
     }