[PD] Random

Martin Peach chakekatzil at gmail.com
Thu May 31 22:00:41 CEST 2018

On Thu, May 31, 2018 at 3:09 PM, hans w. koch <hansw.koch at gmail.com> wrote:

> but couldnĀ“t that pi limitation worked around by a loadbang -delay combo
> to read a date, once the system has established one?
> would need mention in the helpfile though.
> The pi might not be connected to any network, in which case it will always
start at Jan 1, 2000.
/dev/random may not be usable right at startup as it needs time to
accumulate entropy, .dev/urandom is guaranteed to give some sort of random.
Reading a few bytes from /dev/urandom into a table then combining them into
a float or long int seems like a better idea.
There's an equivalent method in the WIndows API (SystemPrng), but it would
have to be coded into an external since it's not a file like in linux.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20180531/5c22d060/attachment.html>

More information about the Pd-list mailing list