Commit ce4b1684 authored by IKEDA Soji's avatar IKEDA Soji
Browse files

Don't use predefined value for a seed of random tag in interpolated $tag$ of mhonarc_ressources.tt2

parent 7422e648
......@@ -969,9 +969,8 @@ sub _get_tag {
$name = '*';
}
my $cookie = $Conf::Conf{'cookie'};
$cookie = '' unless defined $cookie;
return substr(Digest::MD5::md5_hex(join '/', $cookie, $name), -10);
my $salt = rand; #FIXME: Unreproducible
return substr Digest::MD5::md5_hex(join '/', $salt, $name), -10;
}
sub get_id {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment