changed get_random_bits to return whatever is in memory, instead of actual random bits