Re: [Bug-apl] An inventory of entropy

2019-06-22 Thread Kacper Gutowski
On Sat, Jun 22, 2019 at 01:59:18PM +0200, Dr. Jürgen Sauermann wrote: > Looking at getrandom() and friends it seems like they have considerable > portability problems (e.g. the header files are missing on Mint-17 but > available on Mint-19). From that perspective using /dev/urandom seems > to be a

Re: [Bug-apl] An inventory of entropy

2019-06-22 Thread Dr . Jürgen Sauermann
Hi, fixed in SVN 1172. Monadic ⎕FIO[60] B now returns an integer random value from /dev/urandom. Dyadic 0 ⎕FIO[60] B is the same as monadic ⎕FIO[60] B. Dyadic 1  ⎕FIO[60] B returns a byte vector of length B instead

Re: [Bug-apl] An inventory of entropy

2019-06-22 Thread Dr . Jürgen Sauermann
Hi Bill, Kacper, I have stored the rl.apl file in the GNU APL Bits and pieces directory: https://www.gnu.org/software/apl/Bits_and_Pieces/rl.html Storing it there brings it faster to the people because the frequency of "official"

Re: [Bug-apl] An inventory of entropy

2019-06-21 Thread Kacper Gutowski
I used something similar installed as an user command, but it's a trivial one-liner and only good reason to include it in distribution would be to do it right while avoiding possible mistakes and pitfalls—which the proposed code doesn't do. (Where does 4294967294 come from? Twice the MINSTD

Re: [Bug-apl] An inventory of entropy

2019-06-21 Thread Dr . Jürgen Sauermann
Hi Bill, yes. But a better name would be good ("rl" isn;t too descriptive). If I understand it correctly then the function reads a 4-byte random number from /dev/random. On a second thought, wouldn't it be even better to make a separate

[Bug-apl] An inventory of entropy

2019-06-21 Thread Bill Daly
I read the man page on /dev/random; I wrote this package. Can this function to seed quad-rl become part of gnu-apl? I'm still struggling with how entropy, the tendency of the universe toward disorder, be inventoried? w #! /usr/local/bin/apl --script ⍝