Merge commit 'origin/platal-0.10.0'
[platal.git] / modules / poison / poison.inc.php
index 3e9b471..1429036 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2008 Polytechnique.org                              *
+ *  Copyright (C) 2003-2009 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -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;
     }