Just modulo the hash function
`hash_value % (2**32)`

On 31 August 2012 12:46, Yoganand Anandaraju <[email protected]> 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
> [email protected]
> http://mail.python.org/mailman/listinfo/bangpypers
>
_______________________________________________
BangPypers mailing list
[email protected]
http://mail.python.org/mailman/listinfo/bangpypers

Reply via email to