Permalink
Browse files

Need some more random seeding

  • Loading branch information...
dustin committed Dec 7, 2013
1 parent d3998d9 commit b302c21e09689ff41b9b9f9e49125da98e0e50c9
Showing with 6 additions and 0 deletions.
  1. +6 −0 tools/tool.go
View
@@ -7,14 +7,20 @@ import (
"fmt"
"io/ioutil"
"log"
+ "math/rand"
"net/http"
"net/url"
"os"
"sort"
"strings"
"text/template"
+ "time"
)
+func init() {
+ rand.Seed(time.Now().UnixNano())
+}
+
type Command struct {
Nargs int
F func(url string, args []string)

0 comments on commit b302c21

Please sign in to comment.