eGospodarka.pl
eGospodarka.pl poleca

eGospodarka.plGrupypl.comp.programmingJak zrobić testy Dieharda?
Ilość wypowiedzi w tym wątku: 45

  • 21. Data: 2020-09-06 23:54:59
    Temat: Re: Jak zrobić testy Dieharda?
    Od: Borneq <b...@a...hidden.pl>

    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


  • 22. Data: 2020-09-07 08:22:10
    Temat: Re: Jak zrobić testy Dieharda?
    Od: heby <h...@p...onet.pl>

    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.


  • 23. Data: 2020-09-07 13:24:10
    Temat: Re: Jak zrobić testy Dieharda?
    Od: q...@t...no1 (Queequeg)

    osobliwy nick <o...@g...com> wrote:

    > Ok, mam VirtualBoxa. Tylko chce mieć system z dysku E. I nie ma innej
    > opcji. Czas zacząć poszukiwania płyty z Linuksem...

    System z dysku E, to znaczy co dokładnie chcesz osiągnąć? Mieć pliki
    VirtualBoxa na dysku E?

    --
    W trakcie egzaminu jeden ze studentow poprosil o otwarcie okna
    (upal). Profesor stwiedzil:
    - "Okno mozna otwozyc, orlow tu nie ma, nie wyfruna" (wlasnie zlapal
    kilku na sciaganiu).
    Po egzaminie, gdy juz wszyscy wychodzili, ten sam student spytal:
    - "Ooo!?, pan Profesor tez drzwiami?"


  • 24. Data: 2020-09-07 14:05:55
    Temat: Re: Jak zrobić testy Dieharda?
    Od: osobliwy nick <o...@g...com>

    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


  • 25. Data: 2020-09-07 14:08:29
    Temat: Re: Jak zrobić testy Dieharda?
    Od: Borneq <b...@a...hidden.pl>

    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
    ?


  • 26. Data: 2020-09-07 16:05:13
    Temat: Re: Jak zrobić testy Dieharda?
    Od: heby <h...@p...onet.pl>

    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.


  • 27. Data: 2020-09-07 20:31:07
    Temat: Re: Jak zrobić testy Dieharda?
    Od: osobliwy nick <o...@g...com>

    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


  • 28. Data: 2020-09-07 22:11:31
    Temat: Re: Jak zrobić testy Dieharda?
    Od: Borneq <b...@a...hidden.pl>

    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


  • 29. Data: 2020-09-08 00:31:44
    Temat: Re: Jak zrobić testy Dieharda?
    Od: osobliwy nick <o...@g...com>

    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ć?


  • 30. Data: 2020-09-08 01:52:14
    Temat: Re: Jak zrobić testy Dieharda?
    Od: osobliwy nick <o...@g...com>

    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.

strony : 1 . 2 . [ 3 ] . 4 . 5


Szukaj w grupach

Szukaj w grupach

Eksperci egospodarka.pl

1 1 1

Wpisz nazwę miasta, dla którego chcesz znaleźć jednostkę ZUS.

Wzory dokumentów

Bezpłatne wzory dokumentów i formularzy.
Wyszukaj i pobierz za darmo: