<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 20, 2015 at 6:39 PM, Jean-Claude Beaudoin <span dir="ltr"><<a href="mailto:jean.claude.beaudoin@gmail.com" target="_blank">jean.claude.beaudoin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div>On Mon, Apr 20, 2015 at 4:13 PM, Tomas Hlavaty <span dir="ltr"><<a href="mailto:tom@logand.com" target="_blank">tom@logand.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Jean-Claude,<br>
<br>
it is not possible to open /dev/urandom:<br>
<br>
(with-open-file (s "/dev/urandom" :element-type '(unsigned-byte 8))<br>
(read-byte s))<br>
<br>
Filesystem error with pathname: "/dev/urandom".<br>
Cannot open file<br>
OS Explanation: (errno == 0) Success<br>
[Condition of type SI:OS-FILE-ERROR]<br>
<br>
but this works:<br>
<br>
(with-open-file (s "/etc/passwd" :element-type '(unsigned-byte 8))<br>
(read-byte s))<br>
<br></blockquote><div><br></div></div></div><div>Yep! It is a bug!<br><br></div><div>Working on a fix...<br><br></div></div></div></div></blockquote><div><br></div><div>This fix is now in github repo master head.<br><br></div><div>#'cl:probe-file was too selective in its file type tastes...<br><br></div><div>Thank you for pointing it.<br><br></div><div>JCB<br><br></div></div></div></div>