diff --git a/layouts/shortcodes/random_image.html b/layouts/shortcodes/random_image.html index 6c3d983..40b47de 100644 --- a/layouts/shortcodes/random_image.html +++ b/layouts/shortcodes/random_image.html @@ -3,7 +3,7 @@ {{- errorf "missing value for 'image.choices': %s" .Position }} {{- end }} {{- $alt := default "random image" ($.Page.Param "image.alt") }} -{{- $id := sha256 now.UnixNano }} +{{- $id := sha256 (index (seq 999 | shuffle) 0) }}