Add hash-based random number generator