Corrected salt generation

Using standard function for salt generation.