That much I figured.  It also doesn't work with fifo (limit error).
I hoped this was some kind of bug you guys could fix,
since c standard lib functions wouldn't care.

> On Apr 18, 2017, at 12:33 AM, bill lam <[email protected]> wrote:
> 
> 1!:x cannot read non regular files.try
> 2!:0'cat /dev/...'
> 
> 
> 
> On 18 Apr, 2017 1:13 pm, "Xiao-Yong Jin" <[email protected]> wrote:
> 
> Hi,
> 
> I was trying to get some random bits but found out that 1!:11 doesn't work
> with /dev/urandom.
> 
>   _3(3!:4)1!:11'/dev/urandom';0 8
> |index error
> |   _3(3!:4)    1!:11'/dev/urandom';0 8
> 
> It works with a normal file but not /dev/urandom.
> Is it a bug?  Any work around for this?
> 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to