openssl RAND_load_file always returns 0
<p>I'm trying to read from <code>/dev/random/</code> on linux using.</p>

<pre><code>int bytes = RAND_load_file("/dev/random", 16);
printf("%d bytes read", bytes);
</code></pre>

<p>This always outputs 0 bytes read.</p>

<p><code>/dev/random</code> is being fed by a software entropy source. I made sure <code>/dev/random</code> does have enough data. According to docs <code>RAND_load_file</code> should return no. of bytes read but this is not happening.</p>