Salt and hashing, why not use username?
The point of the salt is to be unique. The salt is meant to prevent attack cost sharing, i.e. an attacker trying to attack two hashed passwords for less than the twice the cost of attacking one. One solution to ensure uniqueness is to generate a random salt in a wide enough space. Therefore, getting …