[BangPypers] Hash function that returns unsigned integer

Ramchandra Apte maniandram01 at gmail.com
Fri Aug 31 09:59:13 CEST 2012


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
>


More information about the BangPypers mailing list