Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: random tokens do not need to be hashed
There's no need to generate extra random bytes only to hash them. A random input will lead to a random hash being generated, but the random input is enough in its own right and does not need to be hashed to make it any more or less secure. The amount of entropy is capped at 32 bytes when hashed, so we may as well just provide 32 random bytes.