Do not create random ids based on current time

This commit is contained in:
sixtus 2022-02-27 12:10:14 +01:00
parent 7ca8fa85ba
commit 89a7b884a7
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
{{- errorf "missing value for 'image.choices': %s" .Position }} {{- errorf "missing value for 'image.choices': %s" .Position }}
{{- end }} {{- end }}
{{- $alt := default "random image" ($.Page.Param "image.alt") }} {{- $alt := default "random image" ($.Page.Param "image.alt") }}
{{- $id := sha256 now.UnixNano }} {{- $id := sha256 (index (seq 999 | shuffle) 0) }}
<p id="{{ $id }}"> <p id="{{ $id }}">
<img class="centered pad-vertical" > <img class="centered pad-vertical" >
</p> </p>