diff --git a/docs/changelog/6.x.x.txt b/docs/changelog/6.x.x.txt index c0c705b6b..b8c16591d 100644 --- a/docs/changelog/6.x.x.txt +++ b/docs/changelog/6.x.x.txt @@ -1,6 +1,7 @@ 6.7.7 - added two new template variables to the EventsCalendar - pagination.previousPageUrl and pagination.nextPageUrl + - fix [ 1328298 ] 6.7.5 random Assets not random - fix [ 1288653 ] Events calendar again - moving forth/back does not work - fix [ 1324230 ] 6.7.6 - Template, Rich Text Editor options not showing - fix [ 1276593 ] 6.7.2 Product Images don't upload diff --git a/lib/WebGUI/Macro/RandomAssetProxy.pm b/lib/WebGUI/Macro/RandomAssetProxy.pm index f8f11e7db..ffb116c30 100644 --- a/lib/WebGUI/Macro/RandomAssetProxy.pm +++ b/lib/WebGUI/Macro/RandomAssetProxy.pm @@ -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) {