[ 1328298 ] 6.7.5 random Assets not random

This commit is contained in:
Matthew Wilson 2005-10-17 17:12:44 +00:00
parent 9ec6f44072
commit c596ea3f1a
2 changed files with 2 additions and 0 deletions

View file

@ -22,6 +22,7 @@ sub process {
if (defined $asset) {
my $children = $asset->getLineage(["children"]);
#randomize;
srand;
my $randomAssetId = $children->[rand(scalar(@{$children}))];
my $randomAsset = WebGUI::Asset->newByDynamicClass($randomAssetId);
if (defined $randomAsset) {