fix bug w randomk only creating random 4 most significant bytes

It looks like the randomk method is only creating a random number in the 4 most significant bytes. The remaining 28 least significant bytes are 0.