session should be integer
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 23 Oct 2010 12:46:30 +0000 (14:46 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 23 Oct 2010 12:46:30 +0000 (14:46 +0200)
Aleph.pm

index 7c4b768..0fba91f 100644 (file)
--- a/Aleph.pm
+++ b/Aleph.pm
@@ -65,7 +65,7 @@ sub search {
 
        die "need query" unless defined $query;
 
-       my $url = 'http://161.53.240.197:8991/F?RN=' . rand(1000000000);
+       my $url = 'http://161.53.240.197:8991/F?RN=' . int rand(1000000000);
        # fake JavaScript code on page which creates random session
 
 diag "get $url";