aboutsummaryrefslogblamecommitdiffstats
path: root/ethutil/rand_test.go
blob: c12698538f389b2b45d017bdf046673b41e8e441 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)
}