Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > pl.comp.programming > #34149 > unrolled thread

Jak zrobić testy Dieharda?

Started byosobliwy nick <osobliwy.nick@gmail.com>
First post2020-09-01 14:54 -0700
Last post2020-09-09 04:42 -0700
Articles 20 on this page of 45 — 6 participants

Back to article view | Back to pl.comp.programming


Contents

  Jak zrobić testy Dieharda? osobliwy nick <osobliwy.nick@gmail.com> - 2020-09-01 14:54 -0700
    Re: Jak zrobić testy Dieharda? Borneq <borneq@antyspam.hidden.pl> - 2020-09-02 11:13 +0200
      Re: Jak zrobić testy Dieharda? Borneq <borneq@antyspam.hidden.pl> - 2020-09-02 11:19 +0200
        Re: Jak zrobić testy Dieharda? Borneq <borneq@antyspam.hidden.pl> - 2020-09-02 11:54 +0200
    Re: Jak zrobić testy Dieharda? osobliwy nick <osobliwy.nick@gmail.com> - 2020-09-04 04:10 -0700
      Re: Jak zrobić testy Dieharda? Borneq <borneq@antyspam.hidden.pl> - 2020-09-04 13:43 +0200
        Re: Jak zrobić testy Dieharda? osobliwy nick <osobliwy.nick@gmail.com> - 2020-09-04 04:46 -0700
          Re: Jak zrobić testy Dieharda? Borneq <borneq@antyspam.hidden.pl> - 2020-09-04 14:05 +0200
            Re: Jak zrobić testy Dieharda? osobliwy nick <osobliwy.nick@gmail.com> - 2020-09-04 05:50 -0700
              Re: Jak zrobić testy Dieharda? godek.maciek@gmail.com - 2020-09-04 08:00 -0700
          Re: Jak zrobić testy Dieharda? bartekltg <bartekltg@gmail.com> - 2020-09-05 16:38 -0700
    Re: Jak zrobić testy Dieharda? osobliwy nick <osobliwy.nick@gmail.com> - 2020-09-04 08:54 -0700
      Re: Jak zrobić testy Dieharda? Borneq <borneq@antyspam.hidden.pl> - 2020-09-04 21:20 +0200
    Re: Jak zrobić testy Dieharda? osobliwy nick <osobliwy.nick@gmail.com> - 2020-09-05 10:05 -0700
      Re: Jak zrobić testy Dieharda? queequeg@trust.no1 (Queequeg) - 2020-09-05 22:00 +0000
        Re: Jak zrobić testy Dieharda? heby <heby@poczta.onet.pl> - 2020-09-06 00:31 +0200
          Re: Jak zrobić testy Dieharda? osobliwy nick <osobliwy.nick@gmail.com> - 2020-09-05 16:05 -0700
            Re: Jak zrobić testy Dieharda? bartekltg <bartekltg@gmail.com> - 2020-09-05 16:43 -0700
        Re: Jak zrobić testy Dieharda? osobliwy nick <osobliwy.nick@gmail.com> - 2020-09-05 15:34 -0700
          Re: Jak zrobić testy Dieharda? queequeg@trust.no1 (Queequeg) - 2020-09-07 11:24 +0000
    Re: Jak zrobić testy Dieharda? osobliwy nick <osobliwy.nick@gmail.com> - 2020-09-06 14:20 -0700
      Re: Jak zrobić testy Dieharda? Borneq <borneq@antyspam.hidden.pl> - 2020-09-06 23:54 +0200
      Re: Jak zrobić testy Dieharda? heby <heby@poczta.onet.pl> - 2020-09-07 08:22 +0200
    Re: Jak zrobić testy Dieharda? osobliwy nick <osobliwy.nick@gmail.com> - 2020-09-07 05:05 -0700
      Re: Jak zrobić testy Dieharda? Borneq <borneq@antyspam.hidden.pl> - 2020-09-07 14:08 +0200
      Re: Jak zrobić testy Dieharda? heby <heby@poczta.onet.pl> - 2020-09-07 16:05 +0200
    Re: Jak zrobić testy Dieharda? osobliwy nick <osobliwy.nick@gmail.com> - 2020-09-07 11:31 -0700
      Re: Jak zrobić testy Dieharda? Borneq <borneq@antyspam.hidden.pl> - 2020-09-07 22:11 +0200
        Re: Jak zrobić testy Dieharda? osobliwy nick <osobliwy.nick@gmail.com> - 2020-09-07 15:31 -0700
          Re: Jak zrobić testy Dieharda? queequeg@trust.no1 (Queequeg) - 2020-09-08 10:16 +0000
    Re: Jak zrobić testy Dieharda? osobliwy nick <osobliwy.nick@gmail.com> - 2020-09-07 16:52 -0700
    Re: Jak zrobić testy Dieharda? osobliwy nick <osobliwy.nick@gmail.com> - 2020-09-07 17:00 -0700
    Re: Jak zrobić testy Dieharda? osobliwy nick <osobliwy.nick@gmail.com> - 2020-09-08 08:00 -0700
      Re: Jak zrobić testy Dieharda? Borneq <borneq@antyspam.hidden.pl> - 2020-09-08 17:16 +0200
        Re: Jak zrobić testy Dieharda? osobliwy nick <osobliwy.nick@gmail.com> - 2020-09-08 12:00 -0700
          Re: Jak zrobić testy Dieharda? Borneq <borneq@antyspam.hidden.pl> - 2020-09-08 21:20 +0200
            Re: Jak zrobić testy Dieharda? osobliwy nick <osobliwy.nick@gmail.com> - 2020-09-08 12:53 -0700
              Re: Jak zrobić testy Dieharda? heby <heby@poczta.onet.pl> - 2020-09-08 22:21 +0200
                Re: Jak zrobić testy Dieharda? heby <heby@poczta.onet.pl> - 2020-09-08 22:23 +0200
                Re: Jak zrobić testy Dieharda? osobliwy nick <osobliwy.nick@gmail.com> - 2020-09-08 13:28 -0700
                  Re: Jak zrobić testy Dieharda? heby <heby@poczta.onet.pl> - 2020-09-08 22:49 +0200
    Re: Jak zrobić testy Dieharda? osobliwy nick <osobliwy.nick@gmail.com> - 2020-09-08 13:47 -0700
    Re: Jak zrobić testy Dieharda? osobliwy nick <osobliwy.nick@gmail.com> - 2020-09-08 15:51 -0700
      Re: Jak zrobić testy Dieharda? Borneq <borneq@antyspam.hidden.pl> - 2020-09-09 01:20 +0200
        Re: Jak zrobić testy Dieharda? osobliwy nick <osobliwy.nick@gmail.com> - 2020-09-09 04:42 -0700

Page 2 of 3 — ← Prev page 1 [2] 3  Next page →


#34170

Fromosobliwy nick <osobliwy.nick@gmail.com>
Date2020-09-06 14:20 -0700
Message-ID<6e871baa-63d1-44be-a5ee-8e1d4d99e60fo@googlegroups.com>
In reply to#34149
Chyba działa mi już to Ubuntu. Ale jestem w katalogu home/tomasz. W home mam:

bin   dev  home  lib    lib64   media  opt   root  sbin  srv  tmp  var
boot  etc  init  lib32  libx32  mnt    proc  run   snap  sys  usr

Gdzie jest dysk C?

[toc] | [prev] | [next] | [standalone]


#34171

FromBorneq <borneq@antyspam.hidden.pl>
Date2020-09-06 23:54 +0200
Message-ID<5f555ab3$0$526$65785112@news.neostrada.pl>
In reply to#34170
On 9/6/20 11:20 PM, osobliwy nick wrote:
> Chyba działa mi już to Ubuntu. Ale jestem w katalogu home/tomasz. W home mam:
> 
> bin   dev  home  lib    lib64   media  opt   root  sbin  srv  tmp  var
> boot  etc  init  lib32  libx32  mnt    proc  run   snap  sys  usr
> 
> Gdzie jest dysk C?
> 
Nie ma w zasadzie podziałów na dyski (chyba że chodzi o montowanie, ale 
o tym na tym etapie nie mówmy)
Jest katalog głowny /
ma podkatalog /home z katalogami uzytwokników
w katalogu użytkownika, który pokazujesz powyżej będziesz miał 
najczęściej do czynienia, są prawa zapisu tutaj, nie potrzeba sudo do 
działania na  tych plikach/
mozna działać tutaj,
albo utworzyc katalog np test czy diehard za pomocą mkdir
albo gdy jest śtodowisko graficzne to za pomocą exploratora czy 
zainstalowanego np. DoubleCommandera
mozna zrobić katalog testdieh i przejśc od nego
mkdir testdieh
cd testdieh

[toc] | [prev] | [next] | [standalone]


#34172

Fromheby <heby@poczta.onet.pl>
Date2020-09-07 08:22 +0200
Message-ID<rj4jil$oj5$1@dont-email.me>
In reply to#34170
On 06/09/2020 23:20, osobliwy nick wrote:
> Chyba działa mi już to Ubuntu. Ale jestem w katalogu home/tomasz. W home mam:
> bin   dev  home  lib    lib64   media  opt   root  sbin  srv  tmp  var
> boot  etc  init  lib32  libx32  mnt    proc  run   snap  sys  usr
> Gdzie jest dysk C?

To maszyna wirtualna? Najpierw musisz w maszynie ustawić przekierowanie 
katalogów hosta do maszyny. W linuxie pojawią się w /media albo /mnt.

[toc] | [prev] | [next] | [standalone]


#34174

Fromosobliwy nick <osobliwy.nick@gmail.com>
Date2020-09-07 05:05 -0700
Message-ID<2bdf2f7a-11b5-47e9-ba48-a7afa4210819o@googlegroups.com>
In reply to#34149
Znalazłem dysk C. Po wpisaniu apt-get install libgsl-dev mam:

E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

A po wpisaniu sudo apt-get install libgsl-dev

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libgsl-dev

[toc] | [prev] | [next] | [standalone]


#34175

FromBorneq <borneq@antyspam.hidden.pl>
Date2020-09-07 14:08 +0200
Message-ID<5f5622bd$0$17350$65785112@news.neostrada.pl>
In reply to#34174
On 9/7/20 2:05 PM, osobliwy nick wrote:
> Znalazłem dysk C. Po wpisaniu apt-get install libgsl-dev mam:
> 
> E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
> E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
> 
> A po wpisaniu sudo apt-get install libgsl-dev
> 
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> E: Unable to locate package libgsl-dev
> 

a co wypisuje
aptitude search gsl-dev
lub
aptitude search gsl
?

[toc] | [prev] | [next] | [standalone]


#34176

Fromheby <heby@poczta.onet.pl>
Date2020-09-07 16:05 +0200
Message-ID<rj5ems$61e$1@dont-email.me>
In reply to#34174
On 07/09/2020 14:05, osobliwy nick wrote:
> E: Unable to locate package libgsl-dev

Najpierw:

sudo apt-get update

Potem reszta. Wszystkie apt-get muszą iśc przez sudo, zwykły user nie ma 
dostępu do instalacji pakietów systemowych.

[toc] | [prev] | [next] | [standalone]


#34177

Fromosobliwy nick <osobliwy.nick@gmail.com>
Date2020-09-07 11:31 -0700
Message-ID<d9cf9d92-e947-4294-9d25-41eaf6ed3861o@googlegroups.com>
In reply to#34149
aptitude search gsl-dev - najpierw musiałem zainstalować "aptitude" i teraz komenda wypisała: 

p   libghc-hmatrix-gsl-dev              - numerical computation
v   libghc-hmatrix-gsl-dev-0.19.0.1-7c8 -
p   libgsl-dev                          - GNU Scientific Library (GSL) -- development p
p   libmsgsl-dev                        - Microsoft Guidelines Support Library

> Najpierw:
> 
> sudo apt-get update
> 
> Potem reszta. Wszystkie apt-get muszą iśc przez sudo, zwykły user nie ma 
> dostępu do instalacji pakietów systemowych.

sudo apt-get update się udało. Teraz zrobiłem sudo apt install libgsl-dev. Udało się, chyba:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libgsl23 libgslcblas0
Suggested packages:
  gsl-ref-psdoc | gsl-doc-pdf | gsl-doc-info | gsl-ref-html
The following NEW packages will be installed:
  libgsl-dev libgsl23 libgslcblas0
0 upgraded, 3 newly installed, 0 to remove and 46 not upgraded.
Need to get 1998 kB of archives.
After this operation, 9931 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu focal/universe amd64 libgslcblas0 amd64 2.5+dfsg-6build1 [84.6 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal/universe amd64 libgsl23 amd64 2.5+dfsg-6build1 [850 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal/universe amd64 libgsl-dev amd64 2.5+dfsg-6build1 [1064 kB]
Fetched 1998 kB in 2s (948 kB/s)
Selecting previously unselected package libgslcblas0:amd64.
(Reading database ... 32686 files and directories currently installed.)
Preparing to unpack .../libgslcblas0_2.5+dfsg-6build1_amd64.deb ...
Unpacking libgslcblas0:amd64 (2.5+dfsg-6build1) ...
Selecting previously unselected package libgsl23:amd64.
Preparing to unpack .../libgsl23_2.5+dfsg-6build1_amd64.deb ...
Unpacking libgsl23:amd64 (2.5+dfsg-6build1) ...
Selecting previously unselected package libgsl-dev.
Preparing to unpack .../libgsl-dev_2.5+dfsg-6build1_amd64.deb ...
Unpacking libgsl-dev (2.5+dfsg-6build1) ...
Setting up libgslcblas0:amd64 (2.5+dfsg-6build1) ...
Setting up libgsl23:amd64 (2.5+dfsg-6build1) ...
Setting up libgsl-dev (2.5+dfsg-6build1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9) ...

I teraz "autoreconf --force --install", jeśli dokładnie tak miałem wpisać, daje:

configure.ac:89: error: possibly undefined macro: AC_PROG_LIBTOOL
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1

[toc] | [prev] | [next] | [standalone]


#34178

FromBorneq <borneq@antyspam.hidden.pl>
Date2020-09-07 22:11 +0200
Message-ID<5f5693f3$0$558$65785112@news.neostrada.pl>
In reply to#34177
On 9/7/20 8:31 PM, osobliwy nick wrote:
> I teraz "autoreconf --force --install", jeśli dokładnie tak miałem wpisać, daje:
> 
> configure.ac:89: error: possibly undefined macro: AC_PROG_LIBTOOL
>        If this token and others are legitimate, please use m4_pattern_allow.
>        See the Autoconf documentation.
> autoreconf: /usr/bin/autoconf failed with exit status: 1
> 

Google mówi że prawdopodobnie libtool nie zainstalowany
sudo apt-get install libtool

[toc] | [prev] | [next] | [standalone]


#34179

Fromosobliwy nick <osobliwy.nick@gmail.com>
Date2020-09-07 15:31 -0700
Message-ID<1bcb71ea-bcca-4f70-911a-90ee4b3fdae2o@googlegroups.com>
In reply to#34178
W dniu poniedziałek, 7 września 2020 22:11:33 UTC+2 użytkownik Borneq napisał:
> On 9/7/20 8:31 PM, osobliwy nick wrote:
> > I teraz "autoreconf --force --install", jeśli dokładnie tak miałem wpisać, daje:
> > 
> > configure.ac:89: error: possibly undefined macro: AC_PROG_LIBTOOL
> >        If this token and others are legitimate, please use m4_pattern_allow.
> >        See the Autoconf documentation.
> > autoreconf: /usr/bin/autoconf failed with exit status: 1
> > 
> 
> Google mówi że prawdopodobnie libtool nie zainstalowany
> sudo apt-get install libtool

Udało się. Ale ./autogen.sh zakończył się:

config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: error: in `/mnt/c/Users/omnia/Desktop/Diehard':
config.status: error: Something went wrong bootstrapping makefile fragments
    for automatic dependency tracking.  Try re-running configure with the
    '--disable-dependency-tracking' option to at least be able to build
    the package (albeit without support for automatic dependency tracking).
See `config.log' for more details
==================================================================

 Makefile should be built, and ./configure --prefix=/usr should be
 completed.  You may rerun configure with a different e.g.
--prefix if you want to put dieharder someplace else.  Otherwise
you should be able to make, make install, or make rpm.

==================================================================

Nie wiem, czy ten błąd ma znaczenie. "make" zwrócił jakieś 2 błędy:

(cd libdieharder; \
make)
make[1]: Entering directory '/mnt/c/Users/omnia/Desktop/Diehard/libdieharder'
source='bits.c' object='libdieharder_la-bits.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -DVERSION=3.31.1 -DLITTLE_ENDIAN=1 -I ../include -I /usr/include  -std=c99 -Wall -pedantic -g -O2 -c -o libdieharder_la-bits.lo `test -f 'bits.c' || echo './'`bits.c
/bin/bash: ../libtool: No such file or directory
make[1]: *** [Makefile:766: libdieharder_la-bits.lo] Error 127
make[1]: Leaving directory '/mnt/c/Users/omnia/Desktop/Diehard/libdieharder'
make: *** [Makefile:948: libwulf.time] Error 2

Poźniej po ./configure i make:

(cd libdieharder; \
make)
make[1]: Entering directory '/mnt/c/Users/omnia/Desktop/Diehard/libdieharder'
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -DVERSION=3.31.1 -DLITTLE_ENDIAN=1 -I ../include -I /usr/local/include  -std=c99 -Wall -pedantic -g -O2 -MT libdieharder_la-bits.lo -MD -MP -MF .deps/libdieharder_la-bits.Tpo -c -o libdieharder_la-bits.lo `test -f 'bits.c' || echo './'`bits.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DVERSION=3.31.1 -DLITTLE_ENDIAN=1 -I ../include -I /usr/local/include -std=c99 -Wall -pedantic -g -O2 -MT libdieharder_la-bits.lo -MD -MP -MF .deps/libdieharder_la-bits.Tpo -c bits.c  -fPIC -DPIC -o .libs/libdieharder_la-bits.o
In file included from ../include/dieharder/libdieharder.h:22,
                 from bits.c:7:
/usr/include/unistd.h:1041:20: error: unknown type name ‘intptr_t’
 1041 | extern void *sbrk (intptr_t __delta) __THROW;
      |                    ^~~~~~~~
bits.c: In function ‘fill_uint_buffer’:
bits.c:407:15: warning: variable ‘bufbits’ set but not used [-Wunused-but-set-variable]
  407 |  unsigned int bufbits,bdelta;
      |               ^~~~~~~
make[1]: *** [Makefile:764: libdieharder_la-bits.lo] Error 1
make[1]: Leaving directory '/mnt/c/Users/omnia/Desktop/Diehard/libdieharder'
make: *** [Makefile:948: libwulf.time] Error 2

Znowu błędy.

> kompiluje sie i jestesmy w domu, powstał
> dieharder-3.31.1/dieharder/.libs/dieharder

Jak mam to skompilować?

[toc] | [prev] | [next] | [standalone]


#34182

Fromqueequeg@trust.no1 (Queequeg)
Date2020-09-08 10:16 +0000
Message-ID<5f33b079-1ac6-42b5-a013-e0e110cb4da0@trust.no1>
In reply to#34179
osobliwy nick <osobliwy.nick@gmail.com> wrote:

> config.status: error: in `/mnt/c/Users/omnia/Desktop/Diehard':

Z doświadczenia -- odpalanie takich skryptów na podmontowanych dyskach 
nie-linuksowych to proszenie się o różne dziwne kłopoty.

> See `config.log' for more details

No to pokaż ten config.log.

-- 
"Ostatnio byłem u wróżki, by przepowiedziała mi przyszłość. Kiedy
spojrzała w szklaną kulę nagle zbladła i wybiegła z namiotu, biegnąc ile
miała sił w nogach. Wk... się, wziąłem kulę, dogoniłem szmatę i ją
zatłukłem. Zastanawiam się tylko, co zobaczyła w tej kuli."

[toc] | [prev] | [next] | [standalone]


#34180

Fromosobliwy nick <osobliwy.nick@gmail.com>
Date2020-09-07 16:52 -0700
Message-ID<91e6e3e6-f0bb-4370-831f-9513774390c6o@googlegroups.com>
In reply to#34149
Ostatecznie dieharder -h wypisał opcje:

#=============================================================================#
#            dieharder version 3.31.1 Copyright 2003 Robert G. Brown          #
#=============================================================================#

Usage:

dieharder [-a] [-d dieharder test number] [-f filename] [-B]
          [-D output flag [-D output flag] ... ] [-F] [-c separator]
          [-g generator number or -1] [-h] [-k ks_flag] [-l]
          [-L overlap] [-m multiply_p] [-n ntuple]
          [-p number of p samples] [-P Xoff]
          [-o filename] [-s seed strategy] [-S random number seed]
          [-n ntuple] [-p number of p samples] [-o filename]
          [-s seed strategy] [-S random number seed]
          [-t number of test samples] [-v verbose flag]
          [-W weak] [-X fail] [-Y Xtrategy]
          [-x xvalue] [-y yvalue] [-z zvalue]

  -a - runs all the tests with standard/default options to create a report
  -d test number -  selects specific diehard test.
  -f filename - generators 201 or 202 permit either raw binary or
     formatted ASCII numbers to be read in from a file for testing.
     generator 200 reads in raw binary numbers from stdin.
     Note well: many tests with default parameters require a lot of rands!
     To see a sample of the (required) header for ASCII formatted input, run

         dieharder -o -f example.input -t 10

     and then examine the contents of example.input.
     Raw binary input reads 32 bit increments of the specified data stream.
     stdin_input_raw accepts a pipe from a raw binary stream.
  -B binary output (used with -o)
  -D output flag - permits fields to be selected for inclusion in dieharder
     output.  Each flag can be entered as a binary number that turns
     on a specific output field or header or by flag name; flags are
     aggregated.  To see all currently known flags use the -F command.
  -F - lists all known flags by name and number.
  -c table separator - where separator is e.g. ',' (CSV) or ' ' (whitespace).
  -g generator number - selects a specific generator for testing.  Using
     -1 causes all known generators to be printed out to the display.
  -h prints context-sensitive help -- usually Usage (this message) or a
     test synopsis if entered as e.g. dieharder -D 3 -h.
  -k ks_flag - ks_flag

     0 is fast but slightly sloppy for psamples > 4999 (default).

     1 is MUCH slower but more accurate for larger numbers of psamples.

     2 is very slow and accurate to machine precision.

     3 is kuiper ks, fast, quite inaccurate for small samples, deprecated.

  -l list all known tests.
  -L overlap

     1 (use overlap, default)

     0 (don't use overlap)

     in operm5 or other tests that support overlapping and non-overlapping
     sample modes.
  -m multiply_p - multiply default # of psamples in -a(ll) runs to crank
     up the resolution of failure.
  -n ntuple - set ntuple length for tests on short bit strings that permit
     the length to be varied (e.g. rgb bitdist).
  -o filename - output -t count random numbers from current generator to file.
  -p count - sets the number of p-value samples per test (default 100).
  -P Xoff - sets the number of psamples that will cumulate before deciding
     that a generator is 'good' and really, truly passes even a -Y 2 T2D run.
     Currently the default is 100000; eventually it will be set from
     AES-derived T2D test failure thresholds for fully automated reliable
     operation, but for now it is more a 'boredom' threshold set by how long
     one might reasonably want to wait on any given test run.
  -S seed - where seed is a uint.  Overrides the default random seed
     selection.  Ignored for file or stdin input.
  -s strategy - if strategy is the (default) 0, dieharder reseeds (or
     rewinds) once at the beginning when the random number generator is
     selected and then never again.  If strategy is nonzero, the generator
     is reseeded or rewound at the beginning of EACH TEST.  If -S seed was
     specified, or a file is used, this means every test is applied to the
     same sequence (which is useful for validation and testing of dieharder,
     but not a good way to test rngs).  Otherwise a new random seed is
     selected for each test.
  -t count - sets the number of random entities used in each test, where
     possible.  Be warned -- some tests will take a long time with the
     default value of 10000.  Read the test synopses for suggested settings
     for -t or use -a first.  Many tests will ignore -t as they require
     a very specific number of samples to be used in generating their
     statistic.
  -W weak - sets the 'weak' threshold to make the test(s) more or less
     forgiving during e.g. a test-to-destruction run.  Default is currently
     0.005.
  -X fail - sets the 'fail' threshold to make the test(s) more or less
     forgiving during e.g. a test-to-destruction run.  Default is currently
     0.000001, which is basically 'certain failure of the null hypothesis',
     the desired mode of reproducible generator failure.
  -Y Xtrategy - the Xtrategy flag controls the new 'test to failure' (T2F)
     modes.  These flags and their modes act as follows:

     0 - just run dieharder with the specified number of tsamples and
     psamples, do not dynamically modify a run based on results.  This is
     the way it has always run, and is still the default.

     1 - 'resolve ambiguity' (RA) mode.  If a test returns 'weak', this is
     an undesired result.  What does that mean, after all?  If you run a long
     test series, you will see occasional weak returns for a perfect
     generators because p is uniformly distributed and will appear in any
     finite interval from time to time.  Even if a test run returns more than
     one weak result, you cannot be certain that the generator is failing.
     RA mode adds psamples (usually in blocks of 100) until the
     test result ends up solidly not weak or proceeds to unambiguous failure.
     This is morally equivalent to running the test several times to see if a
     weak result is reproducible, but eliminates the bias of personal
     judgement in the process since the default failure threshold is very
     small and very unlikely to be reached by random chance even in many
     runs.

     This option should only be used with -k 2.

     2 - 'test to destruction' (T2D) mode.  Sometimes you just want to know
     where or if a generator will .I ever fail a test (or test series).  -Y 2
     causes psamples to be added 100 at a time until a test returns an
     overall pvalue lower than the failure threshold or a specified maximum
     number of psamples (see -P) is reached.

     Note well!  In this mode one may well fail due to the alternate
     null hypothesis -- the test itself is a bad test and fails!  Many
     dieharder tests, despite our best efforts, are numerically unstable or
     have only approximately known target statistics or are straight up
     asymptotic results, and will eventually return a failing result even for
     a gold-standard generator (such as AES), or for the hypercautious the
     XOR generator with AES, threefish, kiss, all loaded at once and xor'd
     together.  It is therefore safest to use this mode comparatively,
     executing a T2D run on AES to get an idea of the test failure
     threshold(s) (something I will eventually do and publish on the web so
     everybody doesn't have to do it independently) and then running it on
     your target generator.  Failure with numbers of psamples within an order
     of magnitude of the AES thresholds should probably be considered
     possible test failures, not generator failures.  Failures at levels
     significantly less than the known gold standard generator failure
     thresholds are, of course, probably failures of the generator.

     This option should only be used with -k 2.

  -v verbose flag -- controls the verbosity of the output for debugging
     only.  Probably of little use to non-developers, and developers can
     read the enum(s) in dieharder.h and the test sources to see which
     flag values turn on output on which routines.  1 is 'all' and will
     result in a highly detailed trace of program activity.

     -x,-y,-z number - Some tests have parameters that can safely be varied
     from their default value.  For example, in the diehard birthdays test,
     one can vary the number of 'dates' drawn from the 'year' of some
     length, which can also be varied.  -x 2048 -y 30 alters these two values
     but should still run fine.  These parameters should be documented
     internally (where they exist) in the e.g. -d 0 -h visible notes.

  NOTE WELL:  The assessment(s) for the rngs may, in fact, be completely
  incorrect or misleading.  In particular, 'Weak' pvalues should occur
  one test in a hundred, and 'Failed' pvalues should occur one test in
  a thousand -- that's what p MEANS.  Use them at your Own Risk!  Be Warned!

Nie wiem, czy wszystko się zrobiło tak jak trzeba.

[toc] | [prev] | [next] | [standalone]


#34181

Fromosobliwy nick <osobliwy.nick@gmail.com>
Date2020-09-07 17:00 -0700
Message-ID<4b914ace-bd47-460c-b4d4-a3c04cfe6acfo@googlegroups.com>
In reply to#34149
Zrobiłem chyba jakiś test dla "dieharder -d 1 -f nieistnieje.exe" pliku, który nie istnieje. Zdany:

#=============================================================================#
#            dieharder version 3.31.1 Copyright 2003 Robert G. Brown          #
#=============================================================================#
   rng_name    |           filename             |rands/second|
        mt19937|                 nieistnieje.exe|  5.09e+07  |
#=============================================================================#
        test_name   |ntup| tsamples |psamples|  p-value |Assessment
#=============================================================================#
      diehard_operm5|   0|   1000000|     100|0.95079970|  PASSED

Nie wiem jak to możliwe.

[toc] | [prev] | [next] | [standalone]


#34183

Fromosobliwy nick <osobliwy.nick@gmail.com>
Date2020-09-08 08:00 -0700
Message-ID<30826c33-a211-4671-8798-de48ef7caae1o@googlegroups.com>
In reply to#34149
Powtórzenie ./autogen.sh nie zwróciło żadnego błędu:

configure: creating ./config.status
config.status: creating dieharder_version.h
config.status: creating dieharder.spec
config.status: creating dieharder.html
config.status: creating dieharder-config
config.status: creating dieharder/Makefile
config.status: creating include/Makefile
config.status: creating libdieharder/Makefile
config.status: creating manual/Makefile
config.status: creating manual/macros.tex
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
==================================================================

 Makefile should be built, and ./configure --prefix=/usr should be
 completed.  You may rerun configure with a different e.g.
--prefix if you want to put dieharder someplace else.  Otherwise
you should be able to make, make install, or make rpm.

==================================================================

Ale make zwróciło:

(cd libdieharder; \
make)
make[1]: Entering directory '/mnt/c/Users/omnia/Desktop/Diehard/libdieharder'
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -DVERSION=3.31.1 -DLITTLE_ENDIAN=1 -I ../include -I /usr/include  -std=c99 -Wall -pedantic -g -O2 -MT libdieharder_la-bits.lo -MD -MP -MF .deps/libdieharder_la-bits.Tpo -c -o libdieharder_la-bits.lo `test -f 'bits.c' || echo './'`bits.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DVERSION=3.31.1 -DLITTLE_ENDIAN=1 -I ../include -I /usr/include -std=c99 -Wall -pedantic -g -O2 -MT libdieharder_la-bits.lo -MD -MP -MF .deps/libdieharder_la-bits.Tpo -c bits.c  -fPIC -DPIC -o .libs/libdieharder_la-bits.o
In file included from ../include/dieharder/libdieharder.h:22,
                 from bits.c:7:
/usr/include/unistd.h:1041:20: error: unknown type name ‘intptr_t’
 1041 | extern void *sbrk (intptr_t __delta) __THROW;
      |                    ^~~~~~~~
bits.c: In function ‘fill_uint_buffer’:
bits.c:407:15: warning: variable ‘bufbits’ set but not used [-Wunused-but-set-variable]
  407 |  unsigned int bufbits,bdelta;
      |               ^~~~~~~
make[1]: *** [Makefile:764: libdieharder_la-bits.lo] Error 1
make[1]: Leaving directory '/mnt/c/Users/omnia/Desktop/Diehard/libdieharder'
make: *** [Makefile:948: libwulf.time] Error 2

[toc] | [prev] | [next] | [standalone]


#34184

FromBorneq <borneq@antyspam.hidden.pl>
Date2020-09-08 17:16 +0200
Message-ID<5f57a03f$0$545$65785112@news.neostrada.pl>
In reply to#34183
On 9/8/20 5:00 PM, osobliwy nick wrote:
> Powtórzenie ./autogen.sh nie zwróciło żadnego błędu:

z jaką opcka autogen?
powinien znalexć że nie ma jakichś nagłówków

[toc] | [prev] | [next] | [standalone]


#34185

Fromosobliwy nick <osobliwy.nick@gmail.com>
Date2020-09-08 12:00 -0700
Message-ID<dba68d60-1e72-4645-bbda-44556657818bo@googlegroups.com>
In reply to#34184
W dniu wtorek, 8 września 2020 17:16:17 UTC+2 użytkownik Borneq napisał:
> On 9/8/20 5:00 PM, osobliwy nick wrote:
> > Powtórzenie ./autogen.sh nie zwróciło żadnego błędu:
> 
> z jaką opcka autogen?
> powinien znalexć że nie ma jakichś nagłówków

Z jaką opcją? Wpisałem po prostu "./autogen.sh".

[toc] | [prev] | [next] | [standalone]


#34186

FromBorneq <borneq@antyspam.hidden.pl>
Date2020-09-08 21:20 +0200
Message-ID<5f57d970$0$556$65785112@news.neostrada.pl>
In reply to#34185
On 9/8/20 9:00 PM, osobliwy nick wrote:
> W dniu wtorek, 8 września 2020 17:16:17 UTC+2 użytkownik Borneq napisał:
>> On 9/8/20 5:00 PM, osobliwy nick wrote:
>>> Powtórzenie ./autogen.sh nie zwróciło żadnego błędu:
>>
>> z jaką opcka autogen?
>> powinien znalexć że nie ma jakichś nagłówków
> 
> Z jaką opcją? Wpisałem po prostu "./autogen.sh".
> 
a może  zamiast tego:
autoreconf --force --install
./configure
make

[toc] | [prev] | [next] | [standalone]


#34187

Fromosobliwy nick <osobliwy.nick@gmail.com>
Date2020-09-08 12:53 -0700
Message-ID<e8afafe1-95c0-45af-99e5-1d7f75e4996do@googlegroups.com>
In reply to#34186
W dniu wtorek, 8 września 2020 21:21:04 UTC+2 użytkownik Borneq napisał:
> On 9/8/20 9:00 PM, osobliwy nick wrote:
> > W dniu wtorek, 8 września 2020 17:16:17 UTC+2 użytkownik Borneq napisał:
> >> On 9/8/20 5:00 PM, osobliwy nick wrote:
> >>> Powtórzenie ./autogen.sh nie zwróciło żadnego błędu:
> >>
> >> z jaką opcka autogen?
> >> powinien znalexć że nie ma jakichś nagłówków
> > 
> > Z jaką opcją? Wpisałem po prostu "./autogen.sh".
> > 
> a może  zamiast tego:
> autoreconf --force --install
> ./configure
> make

Po make znowu te same błędy:

(cd libdieharder; \
make)
make[1]: Entering directory '/mnt/c/Users/omnia/Desktop/Diehard/libdieharder'
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -DVERSION=3.31.1 -DLITTLE_ENDIAN=1 -I ../include -I /usr/local/include  -std=c99 -Wall -pedantic -g -O2 -MT libdieharder_la-bits.lo -MD -MP -MF .deps/libdieharder_la-bits.Tpo -c -o libdieharder_la-bits.lo `test -f 'bits.c' || echo './'`bits.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DVERSION=3.31.1 -DLITTLE_ENDIAN=1 -I ../include -I /usr/local/include -std=c99 -Wall -pedantic -g -O2 -MT libdieharder_la-bits.lo -MD -MP -MF .deps/libdieharder_la-bits.Tpo -c bits.c  -fPIC -DPIC -o .libs/libdieharder_la-bits.o
In file included from ../include/dieharder/libdieharder.h:22,
                 from bits.c:7:
/usr/include/unistd.h:1041:20: error: unknown type name ‘intptr_t’
 1041 | extern void *sbrk (intptr_t __delta) __THROW;
      |                    ^~~~~~~~
bits.c: In function ‘fill_uint_buffer’:
bits.c:407:15: warning: variable ‘bufbits’ set but not used [-Wunused-but-set-variable]
  407 |  unsigned int bufbits,bdelta;
      |               ^~~~~~~
make[1]: *** [Makefile:764: libdieharder_la-bits.lo] Error 1
make[1]: Leaving directory '/mnt/c/Users/omnia/Desktop/Diehard/libdieharder'
make: *** [Makefile:948: libwulf.time] Error 2

[toc] | [prev] | [next] | [standalone]


#34188

Fromheby <heby@poczta.onet.pl>
Date2020-09-08 22:21 +0200
Message-ID<rj8p45$ich$1@dont-email.me>
In reply to#34187
On 08/09/2020 21:53, osobliwy nick wrote:
> /usr/include/unistd.h:1041:20: error: unknown type name ‘intptr_t’
>   1041 | extern void *sbrk (intptr_t __delta) __THROW;

Autor tego narzędzia najwidoczniej zampomniał do inkludować stosowanego 
pliku.

U mnie zadziałało dodanie:

#include <stdint.h>

na samym początku pliku:

include/dieharder/libdieharder.h

Jak byś nie wiedział to w linuxie jest całkiem przyzwoity, konsolowy 
manager plików, Midnight Commander:

sudo apt-get install mc

i w nim jest przyzwoity edytor (mcedit).

[toc] | [prev] | [next] | [standalone]


#34189

Fromheby <heby@poczta.onet.pl>
Date2020-09-08 22:23 +0200
Message-ID<rj8p7q$ich$2@dont-email.me>
In reply to#34188
On 08/09/2020 22:21, heby wrote:
> Autor tego narzędzia najwidoczniej zampomniał do inkludować stosowanego 
> pliku.

Niezly bełkot mi wyszedł.

"zapomniał doinkludować stosownego"

[toc] | [prev] | [next] | [standalone]


#34190

Fromosobliwy nick <osobliwy.nick@gmail.com>
Date2020-09-08 13:28 -0700
Message-ID<332b3707-df61-4d10-855d-f628478d6096o@googlegroups.com>
In reply to#34188
> U mnie zadziałało dodanie:
> 
> #include <stdint.h>
> 
> na samym początku pliku:
> 
> include/dieharder/libdieharder.h

Też to zrobiłem, ale zarówno z tym jak i bez tego jest ten sam problem.

[toc] | [prev] | [next] | [standalone]


Page 2 of 3 — ← Prev page 1 [2] 3  Next page →

Back to top | Article view | pl.comp.programming


csiph-web