zendframework/zf2 — pull request #3107 by internalsystemerror (2012-11-30 01:31:35+00:00)
Title: Modified Zend\Crypt\Password\Bcrypt to store random salt

Currently, if salt is empty, a randomly generated string is used and then thrown away. Although not necessary, it can be advantageous to allow the user to retrieve the salt which was randomly generated.

This fork modifies the create method, so that if $this->salt is empty, it calls $this->setSalt(randomsalt) instead. This allows the subsequent getSalt method to return the randomly generated salt.