Seeding with current unixtime.

This commit is contained in:
Ian Byrd 2017-09-02 02:58:18 +03:00
parent 4a11f8dd75
commit c0a092cc2c
No known key found for this signature in database
GPG Key ID: 598F598CA3B8055F

View File

@ -18,6 +18,8 @@ import (
) )
func init() { func init() {
rand.Seed(time.Now().UTC().UnixNano())
// Regulars // Regulars
pongo2.RegisterFilter("slugify", filterSlugify) pongo2.RegisterFilter("slugify", filterSlugify)
pongo2.RegisterFilter("filesizeformat", filterFilesizeformat) pongo2.RegisterFilter("filesizeformat", filterFilesizeformat)