auth
2015-03-20
Parent:385ac6294cdc
auth/.hgtags
Randomly generate codes. We've been using our IDs for auth codes. But our IDs may at some point be non-random, for the purpose of optimising database performance, or some other perfectly valid reason. Auth codes we always want to be random, and have no relation to IDs, so why conflate them? Instead, we pull 16 random bytes out of crypto/rand.Reader and hex encode them.
1 e0b3064daf02b3061d7666262518e8164315c149 rewrite_begins