top

Package mathrand implements a mockable interface for math/rand.Rand.

It is controllable through context.Context. You should use this instead of math/rand directly, to allow you to make deterministic tests.

Imports 1 package(s)

  1. golang.org/x/net/context

Test imports 1 package(s)

  1. github.com/smartystreets/goconvey/convey