Closed ghost closed 7 years ago
The first character that would be generated from the PRNG was the exact same character as the input character, hence the XOR would return 00.
As per the official DJB2 implementation, I returned the initial hash to 5381
in C here and in JavaScript here.