Updated to use the salt size constant from the Random class.