c9f3644988
* randomString: generate a securely random string. Also, support lengths > 12 in case that's ever needed. This is used in at least one case (creating device tokens for users) where it seems important that the output is unpredictable. * Try harder to create unique usernames. The previous version added 16 bits of entropy to the username, which isn't all that much. Due to the birthday paradox, it would be enough to create ~256 users with the same prefix to get a collision. Trying that would probably fail later on, and not create security issues... but it just seems better to be on the safe side here. |
||
---|---|---|
.. | ||
array.ts | ||
clean-username.ts | ||
format.ts | ||
math.ts | ||
object.ts | ||
parse.ts | ||
promise.ts | ||
random.ts | ||
slugify.ts | ||
time.ts | ||
types.ts |