For sharding I need good hash algorithm. I need to generate hash integer value for string within 0-2^31 range. Is this possible ?
Following answer give a way to generate integer from md5 algorithm.
Hashing a String to a Numeric Value in PostgresSQL
But is there a way to generate this value within a range ?