github.com/jonasnick/go-ethereum@v0.7.12-0.20150216215225-22176f05d387/ethutil/rand_test.go (about)

     1  package ethutil
     2  
     3  import (
     4  	checker "gopkg.in/check.v1"
     5  )
     6  
     7  type RandomSuite struct{}
     8  
     9  var _ = checker.Suite(&RandomSuite{})
    10  
    11  func (s *RandomSuite) TestRandomUint64(c *checker.C) {
    12  	res1, _ := RandomUint64()
    13  	res2, _ := RandomUint64()
    14  	c.Assert(res1, checker.NotNil)
    15  	c.Assert(res2, checker.NotNil)
    16  	c.Assert(res1, checker.Not(checker.Equals), res2)
    17  }