From: Florent Bruneau Date: Tue, 21 Oct 2008 07:46:27 +0000 (+0200) Subject: With fixed seed, change the page every month. X-Git-Tag: xorg/0.9.17~5 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=9c8c009d7fde420a062b3efd9dd2948e58c39317;p=platal.git With fixed seed, change the page every month. Signed-off-by: Florent Bruneau --- diff --git a/modules/poison/poison.inc.php b/modules/poison/poison.inc.php index 3e9b471..eae4b16 100644 --- a/modules/poison/poison.inc.php +++ b/modules/poison/poison.inc.php @@ -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; }