added better random initialization and rr/rand hash algos