perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vincent Veyron <vv.li...@wanadoo.fr>
Subject Re: random token re-used in subsequent requests [SOLVED]
Date Tue, 31 May 2016 19:48:12 GMT
On Tue, 31 May 2016 19:13:25 +0200
demerphq <demerphq@gmail.com> wrote:

> 
> If it can be replicated on a command line then yes.
> 

It could not be replicated on the command line; I tried this, and got 10M unique keys :

xxxx@arsene:~$ perl -le '%h=();for (1..10_000_000) {my $session_id = join "", map +(0..9,"a".."z","A".."Z")[rand(10+26*2)],
1..32;$h{$session_id}=1};$v=keys %h; print $v'
10000000


-- 
					Bien à vous, Vincent Veyron 

https://libremen.com
Logiciels de gestion, libres

Mime
View raw message