From 4f386cf55859bfe73046bbb8309fc395e2f3b15f Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 29 Oct 2019 15:53:20 -0400 Subject: [PATCH] put common init code in honk.go --- deliverator.go | 4 ---- honk.go | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/deliverator.go b/deliverator.go index 17a51a0..fcabe0b 100644 --- a/deliverator.go +++ b/deliverator.go @@ -23,10 +23,6 @@ import ( "humungus.tedunangst.com/r/webs/gate" ) -func init() { - notrand.Seed(time.Now().Unix()) -} - type Doover struct { ID int64 When time.Time diff --git a/honk.go b/honk.go index 1245132..80d984a 100644 --- a/honk.go +++ b/honk.go @@ -20,12 +20,17 @@ import ( "fmt" "html/template" "log" + notrand "math/rand" "os" "strconv" "strings" "time" ) +func init() { + notrand.Seed(time.Now().Unix()) +} + type WhatAbout struct { ID int64 Name string