aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil/rand_test.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2014-11-15 05:01:52 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2014-11-15 05:01:52 +0800
commit2a9fc7baa908d64ff1ddae44641024114d3ec88d (patch)
tree7b94082bd16765984046fa3c04c2ed57812d8c89 /ethutil/rand_test.go
parent56aa24002de357c24a9644a49d5702c8d4663909 (diff)
downloaddexon-2a9fc7baa908d64ff1ddae44641024114d3ec88d.tar.gz
dexon-2a9fc7baa908d64ff1ddae44641024114d3ec88d.tar.zst
dexon-2a9fc7baa908d64ff1ddae44641024114d3ec88d.zip
Merge branch 'develop' of https://github.com/tgerring/go-ethereum
Diffstat (limited to 'ethutil/rand_test.go')
-rw-r--r--ethutil/rand_test.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/ethutil/rand_test.go b/ethutil/rand_test.go
new file mode 100644
index 000000000..c12698538
--- /dev/null
+++ b/ethutil/rand_test.go
@@ -0,0 +1,17 @@
+package ethutil
+
+import (
+ checker "gopkg.in/check.v1"
+)
+
+type RandomSuite struct{}
+
+var _ = checker.Suite(&RandomSuite{})
+
+func (s *RandomSuite) TestRandomUint64(c *checker.C) {
+ res1, _ := RandomUint64()
+ res2, _ := RandomUint64()
+ c.Assert(res1, checker.NotNil)
+ c.Assert(res2, checker.NotNil)
+ c.Assert(res1, checker.Not(checker.Equals), res2)
+}