This commit is contained in:
Taylor Gerring
2014-11-14 15:01:52 -06:00
parent 56aa24002d
commit 2a9fc7baa9
15 changed files with 662 additions and 307 deletions

17
ethutil/rand_test.go Normal file
View File

@ -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)
}