Article View: pl.comp.programming
Article #217491Re: Jak zrobić test za pomocą PractRand?
From: M.M.
Date: Fri, 20 Aug 2021 22:49
Date: Fri, 20 Aug 2021 22:49
34 lines
3330 bytes
3330 bytes
On Saturday, August 21, 2021 at 12:27:11 AM UTC+2, osobli...@gmail.com wrote: > Udało mi się to uruchomić komendą > > cat plik.data | ./konwerter.exe | ./RNG_test stdin > > > rng=RNG_stdin, seed=0xe933a977 > length= 32 megabytes (2^25 bytes), time= 3.1 seconds > Test Name Raw Processed Evaluation > BCFN(2+0,13-4,T) R= +3177 p = 8e-1388 FAIL !!!!!!!! > BCFN(2+1,13-4,T) R= +3148 p = 3e-1375 FAIL !!!!!!!! > ... > [Low1/32]FPF-14+6/16:(0,14-4) R= +14.9 p = 4.0e-12 VERY SUSPICIOUS > [Low1/32]FPF-14+6/16:(1,14-5) R= +8.1 p = 1.3e-6 mildly suspicious > [Low1/32]FPF-14+6/16:all R= +19.0 p = 8.5e-16 FAIL ! > [Low1/32]FPF-14+6/16:all2 R= +54.4 p = 1.8e-18 FAIL ! > [Low1/32]FPF-14+6/16:cross R= +33.2 p = 6.6e-26 FAIL !! > ...and 55 test result(s) without anomalies > > Faili nadal jest dużo, komunikat systemowy "abort() has been called" nadal się pojawia, ale wykazuje więcej testów bez anomialii. Może PractRand kończy działanie po wykryciu tylu faili i konwerter ma błąd zapisu, no bo nie ma procesu do którego by mógł pisać - więc robi abort. Można zrobić test z prostszym generatorem, np.: //Dla 128 bitów return ( next = (prev * a + b) ) >> 96; //Dla 64 bitów return ( next = (prev * a + b) ) >> 32; Jeśli a i b są dobrze dobrane, to PractRand musi pracować bardzo długo zanim wykryje anomalie. Pozdrawiam
Technical Details
Message-ID:
<cb8e26f0-392e-4848-b573-e232e943b6f5n@googlegroups.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!2.eu.feeder.erje.net!feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mailReferences:
<6a2d60cf-5d52-4f70-a0bb-67ac51f2ea47n@googlegroups.com> <0b0e0278-0506-4691-8051-1f73a327e87an@googlegroups.com> <1aabf0e1-8c01-4479-90fc-62d1026d221cn@googlegroups.com> <fcda7316-c8b0-445b-a5d5-2c8db0e2c939n@googlegroups.com> <59524bbe-00b1-4756-b359-19bb000e8641n@googlegroups.com> <2aec1845-1ec1-4e83-835a-ccc9aa089c23n@googlegroups.com> <f201e244-08b1-4ec6-977a-40aba70eac76n@googlegroups.com> <48a87319-4f87-4ace-b9e1-e8c9842514can@googlegroups.com> <5af4b1e3-4d68-4ea8-a5cf-7d2b1075041cn@googlegroups.com> <680b4111-0c0b-4406-ae78-fc27fa1a545an@googlegroups.com> <efe0a67a-6b05-40d2-b877-e5a51f57dd9fn@googlegroups.com>Show Full Headers
Complete Article Headers
X-Received: by 2002:a37:6354:: with SMTP id x81mr11026934qkb.330.1629499784438; Fri, 20 Aug 2021 15:49:44 -0700 (PDT) X-Received: by 2002:a0c:d6cd:: with SMTP id l13mr3778329qvi.24.1629499784350; Fri, 20 Aug 2021 15:49:44 -0700 (PDT) Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!2.eu.feeder.erje.net!feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: pl.comp.programming Date: Fri, 20 Aug 2021 15:49:44 -0700 (PDT) In-Reply-To: <efe0a67a-6b05-40d2-b877-e5a51f57dd9fn@googlegroups.com> Injection-Info: google-groups.googlegroups.com; posting-host=37.128.16.171; posting-account=xjvq9QoAAAATMPC2X3btlHd_LkaJo_rj NNTP-Posting-Host: 37.128.16.171 References: <6a2d60cf-5d52-4f70-a0bb-67ac51f2ea47n@googlegroups.com> <0b0e0278-0506-4691-8051-1f73a327e87an@googlegroups.com> <1aabf0e1-8c01-4479-90fc-62d1026d221cn@googlegroups.com> <fcda7316-c8b0-445b-a5d5-2c8db0e2c939n@googlegroups.com> <59524bbe-00b1-4756-b359-19bb000e8641n@googlegroups.com> <2aec1845-1ec1-4e83-835a-ccc9aa089c23n@googlegroups.com> <f201e244-08b1-4ec6-977a-40aba70eac76n@googlegroups.com> <48a87319-4f87-4ace-b9e1-e8c9842514can@googlegroups.com> <5af4b1e3-4d68-4ea8-a5cf-7d2b1075041cn@googlegroups.com> <680b4111-0c0b-4406-ae78-fc27fa1a545an@googlegroups.com> <efe0a67a-6b05-40d2-b877-e5a51f57dd9fn@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <cb8e26f0-392e-4848-b573-e232e943b6f5n@googlegroups.com> Subject: Re: Jak zrobić test za pomocą PractRand? From: "M.M." <mmarszik@gmail.com> Injection-Date: Fri, 20 Aug 2021 22:49:44 +0000 X-Received-Bytes: 3369 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit