aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2019-10-01 17:58:01 +0000
committerChristine Dodrill <me@christine.website>2019-10-01 17:58:01 +0000
commit09aef4a683dc6fdf00afec4403079449da9f2d26 (patch)
tree637abe80f97b4dddfff292cbb66b6badce44ffb5
parent271e6d7b69247d5a9abe1931dc0afea746fd55c0 (diff)
downloadx-09aef4a683dc6fdf00afec4403079449da9f2d26.tar.xz
x-09aef4a683dc6fdf00afec4403079449da9f2d26.zip
seed
-rw-r--r--namegen/elfs/elfs.go5
-rw-r--r--namegen/elfs/elfs_test.go1
2 files changed, 6 insertions, 0 deletions
diff --git a/namegen/elfs/elfs.go b/namegen/elfs/elfs.go
index 8607e4b..5eb559a 100644
--- a/namegen/elfs/elfs.go
+++ b/namegen/elfs/elfs.go
@@ -7,8 +7,13 @@ import (
"fmt"
"math/rand"
"strings"
+ "time"
)
+func init() {
+ rand.Seed(time.Now().UnixNano())
+}
+
// Names is the name of every Pokemon from Pokemon Vietnamese Crystal.
var Names = []string{
"SEED",
diff --git a/namegen/elfs/elfs_test.go b/namegen/elfs/elfs_test.go
index dd8a2d4..1609111 100644
--- a/namegen/elfs/elfs_test.go
+++ b/namegen/elfs/elfs_test.go
@@ -4,6 +4,7 @@ import "testing"
func TestNext(t *testing.T) {
n := Next()
+ t.Log(n)
if len(n) == 0 {
t.Fatalf("MakeName had a zero output")
}