title: How to read /dev/random in python
body: <p>I read in a book that <code>/dev/random</code> is like an infinite file, but when I set up the following codes to see what the content look like, it prints nothing.</p>
  
  <pre><code>with open("/dev/random") as f:
      for i in xrange(10):
          print f.readline()
  </code></pre>
  
  <p>BTW, when I tried this with <code>/dev/urandom</code>, it worked.</p>