/dev/random random and function