Generates a random salt. Necessary for salting passwords.
NEVER REUSE A SALT! This must be called separately EVERY time any user sets
or resets a password. Reusing salts defeats the security of salting passwords.
The length must be a multiple of 4, or this will throw an Exception
WARNING! Mt19937 (the default here) is not a "Cryptographically secure
pseudorandom number generator"
Generates a random salt. Necessary for salting passwords.
NEVER REUSE A SALT! This must be called separately EVERY time any user sets or resets a password. Reusing salts defeats the security of salting passwords.
The length must be a multiple of 4, or this will throw an Exception
WARNING! Mt19937 (the default here) is not a "Cryptographically secure pseudorandom number generator"