aboutsummaryrefslogtreecommitdiffstats
path: root/bin/send-questionnaires
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-questionnaires
parent8a0d350e7126ed1d88756dcb16256b887bd1244e (diff)
Use urandom.
Diffstat (limited to 'bin/send-questionnaires')
-rwxr-xr-xbin/send-questionnaires4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/send-questionnaires b/bin/send-questionnaires
index 70c22bd78..ebd1be8fc 100755
--- a/bin/send-questionnaires
+++ b/bin/send-questionnaires
@@ -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-questionnaires,v 1.7 2008-03-21 14:31:39 matthew Exp $
+# $Id: send-questionnaires,v 1.8 2008-10-07 16:44:09 matthew Exp $
use strict;
require 5.8.0;
@@ -84,7 +84,7 @@ foreach my $row (@$unsent) {
_parameters_ => \%h,
To => [ [ $row->{email}, $row->{name} ] ],
From => [ $sender, 'FixMyStreet' ],
- 'Message-ID' => sprintf('<ques-%s-%s@mysociety.org>', time(), unpack('h*', random_bytes(5))),
+ 'Message-ID' => sprintf('<ques-%s-%s@mysociety.org>', time(), unpack('h*', random_bytes(5, 1))),
});
print "Sending questionnaire $id, problem $row->{id}, token $token to $row->{email}\n" if $verbose;