BUG: fixed signed integer overflow by switching to unsigned int

Change-Id: I5e0b2b8e02fe17ddc5617a596d31137e9b77f47c
Merge topic 'fix-signed-overflow-in-hash' into master

b762a0a8 BUG: fixed signed integer overflow by switching to unsigned int