Subject: | bnode id generator in nodefactory |
NodeFactory uses a simple counter to generate bnode ids. Probably would
be more correct to utilize a random number generator instead.
Like:
sub _generateURI {
my $self = shift;
$self->getOptions->{GenPrefix} = '_:a'
unless defined $self->getOptions->{GenPrefix};
my $bNode = $self->getOptions->{GenPrefix}.
sprintf( "%08x%04x", time(), int(rand(0xFFFF)));
return $bNode
}