title: Is reading /dev/urandom thread-safe?
body: <p>This is the code:</p>
  
  <p><code><pre>
    unsigned int number;
    FILE* urandom = fopen("/dev/urandom", "r");
    if (urandom) {
      size_t bytes_read = fread(&amp;number, 1, sizeof(number), urandom);
      DCHECK(bytes_read == sizeof(number));
      fclose(urandom);
    } else {
      NOTREACHED();
    }
  </pre></code></p>
  
  <p>If not, how do I make it thread-safe?</p>