| 23 | } |
| 24 | |
| 25 | type RandomTokenGenerator struct { |
| 26 | m sync.Mutex |
| 27 | r *rand.Rand |
| 28 | } |
| 29 | |
| 30 | func NewRandomTokenGenerator() *RandomTokenGenerator { |
| 31 | return &RandomTokenGenerator{r: rand.New(rand.NewSource(time.Now().UnixNano()))} |
nothing calls this directly
no outgoing calls
no test coverage detected