The TCS SAPI hash function uses the accountName as the salt value to ensure unique hashes for each user even if they have the same password. Salting with accountName prevents pre-computed rainbow table attacks and ensures that two users with identical passwords have different hash values. Using a constant salt or no salt would make the hashes vulnerable to dictionary attacks.