-
Committer:
Tarmac
-
Author(s):
John Arbash Meinel
-
Date:
2013-03-08 22:01:14 UTC
-
mfrom:
(77.3.5 rand-failures)
-
Revision ID:
tarmac-20130308220114-x3y5g5s0eeli3c97
[r=jameinel] identityservice: out-of-random nil error
On some circumstances we can't read all 16-bytes of random data for a hex token in one request. Instead we can use rand.Reader and ioutil functionality to retry reads, etc.
This avoids one of the random failures in the test suite.