String Hashing

A challenge by mousetail avatar mousetail

Description

Given a list of strings, one on each line, output a positive 31-bit integer for each one. Each word in words.txt should get a unique hash, and the hash should stay consistent for the same word, even between runs.

Integers outputted should be at most 2^31-1.

Leaderboard

Author Points
#1 Mukundan314 avatar Mukundan314 35
#1 hallvabo avatar hallvabo 35
#1 chunkybanana avatar chunkybanana 35
#1 ovs-code avatar ovs-code 35
#1 EroticShiveringKingBanana avatar EroticShiveringKingBanana 35
#1 AlephSquirrel avatar AlephSquirrel 35
#1 mousetail avatar mousetail 35
#1 lukegustafson avatar lukegustafson 35
#9 Bulmenisaurus avatar Bulmenisaurus 36
#10 NicknamedTwice avatar NicknamedTwice 84