summaryrefslogtreecommitdiffstats
path: root/lib/SimpleSAML/XHTML/EMail.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/SimpleSAML/XHTML/EMail.php')
-rw-r--r--lib/SimpleSAML/XHTML/EMail.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/SimpleSAML/XHTML/EMail.php b/lib/SimpleSAML/XHTML/EMail.php
index 19b97a0..4c5385e 100644
--- a/lib/SimpleSAML/XHTML/EMail.php
+++ b/lib/SimpleSAML/XHTML/EMail.php
@@ -66,7 +66,7 @@ pre {
if ($this->subject == NULL) throw new Exception('EMail field [subject] is required and not set.');
if ($this->body == NULL) throw new Exception('EMail field [body] is required and not set.');
- $random_hash = substr(0, 16, md5(date('r', time())));
+ $random_hash = SimpleSAML_Utilities::stringToHex(SimpleSAML_Utilities::generateRandomBytes(16));
if (isset($this->from))
$this->headers[]= 'From: ' . $this->from;