Fix doc for generateSalt.

$cost must be in range 4-31.