pseudorandom hashing algorithm as per rfc5246