put common init code in honk.go

This commit is contained in:
Ted Unangst 2019-10-29 15:53:20 -04:00
parent 761929ec47
commit 4f386cf558
2 changed files with 5 additions and 4 deletions

View File

@ -23,10 +23,6 @@ import (
"humungus.tedunangst.com/r/webs/gate" "humungus.tedunangst.com/r/webs/gate"
) )
func init() {
notrand.Seed(time.Now().Unix())
}
type Doover struct { type Doover struct {
ID int64 ID int64
When time.Time When time.Time

View File

@ -20,12 +20,17 @@ import (
"fmt" "fmt"
"html/template" "html/template"
"log" "log"
notrand "math/rand"
"os" "os"
"strconv" "strconv"
"strings" "strings"
"time" "time"
) )
func init() {
notrand.Seed(time.Now().Unix())
}
type WhatAbout struct { type WhatAbout struct {
ID int64 ID int64
Name string Name string