I read in a book that /dev/random is like an infinite file, but when I set up the following codes to see what the content look like, it prints nothing.
/dev/random
FWIW, the preferred way of accessing this stream (or something like it) in a semi-portable way is os.urandom()