FTS-31: Use random numbers for the 'hashed_id'

As FTS3. Also, test added to check for uniformity of these ids.