aboutsummaryrefslogtreecommitdiff
path: root/sd.go
diff options
context:
space:
mode:
Diffstat (limited to 'sd.go')
-rw-r--r--sd.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/sd.go b/sd.go
index 767bc81..4470b28 100644
--- a/sd.go
+++ b/sd.go
@@ -7,6 +7,7 @@ import (
"math/rand"
"os"
"os/exec"
+ "time"
_ "modernc.org/sqlite"
)
@@ -17,6 +18,11 @@ var (
)
func main() {
+ if !*verbose {
+ // Seed the RNG
+ rand.Seed(time.Now().UnixNano())
+ }
+
flag.Parse()
db, err := sql.Open("sqlite", *file)