| Deutsch English Français Italiano |
|
<ee8f59e1db07acf1dd341d0f9de73703@www.novabbs.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.mixmin.net!news.neodome.net!rocksolid2!i2pn2.org!.POSTED!not-for-mail From: mhx@iae.nl (mhx) Newsgroups: comp.lang.forth Subject: Re: KISS 64-bit pseudo-random number generator Date: Mon, 9 Sep 2024 10:04:20 +0000 Organization: novaBBS Message-ID: <ee8f59e1db07acf1dd341d0f9de73703@www.novabbs.com> References: <vblosf$292ru$1@dont-email.me> <7w7cblb9je.fsf@junk.nocrew.org> <0d6fd7afead1708921d74f60970bcf62@www.novabbs.com> <2024Sep9.105514@mips.complang.tuwien.ac.at> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: i2pn2.org; logging-data="1401421"; mail-complaints-to="usenet@i2pn2.org"; posting-account="t0bSWFIQDvYvkkhDiPIIv6byulC6WbSEwXWMJpxc4k0"; User-Agent: Rocksolid Light X-Rslight-Posting-User: 59549e76d0c3560fb37b97f0b9407a8c14054f24 X-Spam-Checker-Version: SpamAssassin 4.0.0 X-Rslight-Site: $2y$10$inqM1inERffLoSLKJKXRPujdpOOV6Wzp6iq9t7qHKKpt719iCMVpO Bytes: 1948 Lines: 19 On Mon, 9 Sep 2024 8:55:14 +0000, Anton Ertl wrote: >> 1320>> : RANDOM seed $107465 * $234567 + ( -- u ) >> 1321: 9 ROL DUP TO seed ; > > So this is a linear congruential generator enhanded with the 9 ROL. > LCGs have known weaknesses that are relevant even for > non-cryptographic applications. Maybe the ROL fixes those; have you > run it through ransomness testers? The ROL fixes the problem that the lower bits are "less random" than the higher ones (which was npticeable in my graphics applications). With 9 ROL the generator passes Marsaglia's DIEHARD tests (I showed these in an ancient post). However, I see a comment in the source that suggests it did not pass a better test than DIEHARD, so that is why there are RANF, RAN-NEXT, KISS, pseudo-DES, ran0, ran1, ran2, ran3, random3, wurst-rng, isaac, lehmer, mersenne-twister, and some I can't find right now. -marcel