You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
387 B
13 lines
387 B
{{- $context := . }}
|
|
{{- if (ne $context.Site.Params.disableRandomIds true) }}
|
|
{{- $random := "" }}
|
|
{{- $set := split "012345abcdefghijklmnopqrstuvwxyz" "" }}
|
|
{{- range (seq 16) }}
|
|
{{- with ($set | shuffle | first 1) }}
|
|
{{- $random = printf "%s%s" $random . }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- md5 $random }}
|
|
{{- else }}
|
|
{{- printf "00000000000000000000000000000000" }}
|
|
{{- end }} |