That could be caused by a bad salt value, or a completely crocked pseudo-random generator.
Is there source for this, or is this a script we're calling to get a random?