Add back old middlewares

This commit is contained in:
Morgan Bazalgette
2017-02-02 15:13:17 +01:00
parent 736c904f65
commit 490d13e333
5 changed files with 116 additions and 135 deletions

View File

@@ -82,7 +82,8 @@ var randomSentences = [...]string{
}
func surpriseMe() string {
return randomSentences[rn.Intn(len(randomSentences))] + " " + kaomojis[rn.Intn(len(kaomojis))]
n := int(time.Now().UnixNano())
return randomSentences[n%len(randomSentences)] + " " + kaomojis[n%len(kaomojis)]
}
type pingResponse struct {