[BangPypers] Hash function that returns unsigned integer

Yoganand Anandaraju yoganand at gmx.com
Fri Aug 31 11:34:10 CEST 2012


Will that be unique(near unique)? Want to make sure hashing someother string will not produce the same hash value. 

----- Original Message -----
From: Ramchandra Apte
Sent: 08/31/12 01:29 PM
To: Bangalore Python Users Group - India
Subject: Re: [BangPypers] Hash function that returns unsigned integer

 Just modulo the hash function `hash_value % (2**32)` On 31 August 2012 12:46, Yoganand Anandaraju <yoganand at gmx.com> wrote: > Is anyone aware of any non-cryptographic hash function whose value is only > postive integer. Pythons inbuilt hash function is a signed integer. > > > Regards, > Yoganand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers



Regards,
 Yoganand


More information about the BangPypers mailing list