Fixed n-length nonce usage.
sub nonce {
my $n = shift;
sub nonce {
my $n = shift;
my @chars = ( 'a' .. 'z', 'A' .. 'Z', '0' .. '9' );
my @path = ();
my @chars = ( 'a' .. 'z', 'A' .. 'Z', '0' .. '9' );
my @path = ();
- push @path, $chars[ rand @chars ] for 1 .. 10;
+ push @path, $chars[ rand @chars ] for 1 .. $n;
die "No match: $name\n" unless @files;
# create nonce dir and add symbolic links
die "No match: $name\n" unless @files;
# create nonce dir and add symbolic links
my $nonce_dir = makeNonceDir($nonce);
for my $file (@files) {
my $nonce_dir = makeNonceDir($nonce);
for my $file (@files) {