~allenap/gwacl/update-role

« back to all changes in this revision

Viewing changes to names_test.go

  • Committer: Gavin Panella
  • Date: 2013-07-12 14:40:49 UTC
  • mto: This revision was merged to the branch mainline in revision 182.
  • Revision ID: gavin@gromper.net-20130712144049-ydc5ka79jk8qf1bx
Use a GWACL-specific source of pseudo-randomness.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
import (
7
7
    . "launchpad.net/gocheck"
8
 
    "math/rand"
9
8
    "strings"
10
9
)
11
10
 
18
17
}
19
18
 
20
19
func (*namesSuite) TestMakeRandomIdentifierObeysLength(c *C) {
21
 
    length := 6 + rand.Intn(50)
 
20
    length := 6 + random.Intn(50)
22
21
    c.Check(len(makeRandomIdentifier("x", length)), Equals, length)
23
22
}
24
23