Now switches between random, urandom and rand()