Salt function respects length argument.