- my $ip=$ENV{'REMOTE_ADDR'};
- my $time=time();
- my $port=$ENV{'REMOTE_PORT'};
- my $rand=int(rand(time()));
- $ip = hex(join ('',map {sprintf ('%02X',$_)} split (/\./,$ip)));
+ my $ip=$ENV{REMOTE_ADDR};
+ my $time=time;
+ my $port=$ENV{REMOTE_PORT};
+ my $rand=int(rand(time));
+
+ # works only with IPv4! (will be changed later...)
+ #
+ $ip = hex(join ('',map {sprintf ('%02X',$_)} split (/\./,$ip)));