I use a script/verb to set random seed, it gets 4 bytes from /dev/random using -
host 'dd if=/dev/random bs=4 count=1' where host=: [: 2!:0 '(' , ' || true)' ,~ ] > On 2017Apr 17, at 23:01, Xiao-Yong Jin <jinxiaoy...@gmail.com> wrote: > > 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 <bbill....@gmail.com> wrote: >> >> 1!:x cannot read non regular files.try >> 2!:0'cat /dev/...' >> >> >> >> On 18 Apr, 2017 1:13 pm, "Xiao-Yong Jin" <jinxiaoy...@gmail.com> 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