diff options
Diffstat (limited to 'bin/send-questionnaires')
-rwxr-xr-x | bin/send-questionnaires | 4 |
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; |