aboutsummaryrefslogtreecommitdiffstats
path: root/bin/send-reports
diff options
context:
space:
mode:
authormatthew <matthew>2008-10-07 16:44:09 +0000
committermatthew <matthew>2008-10-07 16:44:09 +0000
commitdeae2f57f9783c7daa5a9b9d8034d8481288f2bb (patch)
tree0d74c399a4664aa3ef0e05bb9a3eb3352c005038 /bin/send-reports
parent8a0d350e7126ed1d88756dcb16256b887bd1244e (diff)
Use urandom.
Diffstat (limited to 'bin/send-reports')
-rwxr-xr-xbin/send-reports4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/send-reports b/bin/send-reports
index 05c63453f..7c87b953d 100755
--- a/bin/send-reports
+++ b/bin/send-reports
@@ -6,7 +6,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: matthew@mysociety.org. WWW: http://www.mysociety.org
#
-# $Id: send-reports,v 1.56 2008-09-19 10:24:55 matthew Exp $
+# $Id: send-reports,v 1.57 2008-10-07 16:44:09 matthew Exp $
use strict;
require 5.8.0;
@@ -171,7 +171,7 @@ If you know of an appropriate contact address, please do get in touch. ]\n\n";
_parameters_ => \%h,
To => \@to,
From => [ $row->{email}, $row->{name} ],
- 'Message-ID' => sprintf('<report-%s-%s@mysociety.org>', time(), unpack('h*', random_bytes(5))),
+ 'Message-ID' => sprintf('<report-%s-%s@mysociety.org>', time(), unpack('h*', random_bytes(5, 1))),
});
my $result;