Closed trabetti closed 5 years ago
Build failed. I used math/rand.Rand as an io.Reader and it failed saying it does not implement the io.Reader interface. It does not fail in my env, I think it is because of the Go version in the travis build is old. Although I see that math/rand.Rand implements io.Reader since 2015. Anyway, it is just for the tests, I will use a string reader instead.
@pborman
@pborman , do you still intend to merge this? Thank you!
Sorry for the delay. Thank you for the contribution.
Related to issue #43. To enable concurrent and re-creatable usage, I have added a
UuidSource
, similar to the source inmath/rand
. It holds its own random number generator (the rander). I have added only the methods that seemed relevant: SetRand(), NewRandom() (version 4) and New(). From what I saw, other methods do not use random number generator (except the clock sequence but this can't be recreated anyway).