Jak użyć programów/biblioteki w github?

0

Cześć. Jestem początkujący w programowaniu, ale dotarłem do testów, które zrobił prof. Vigna w jednej ze swoich publikacji:

https://github.com/vigna/CPRNG

Ten kod jest jak rozumiem gotowy do użycia, autor napisał jedynie, że:

Edit the threshold constant in search.c to get all multipliers. Note that you have to try all bit sizes.

ponieważ ja chcę zrobić testy dla tylko dla 16-bitowych multipliers. Czytam readme tu:

https://github.com/vigna/CPRNG/find/main

Ale nie rozumiem podstawowej rzeczy, czy ja mam te pliki pobrać, zainstalować w jakiś sposób, czy jak ostatecznie ich użyć?

0

Pobierasz je np. przez gita i masz tam w każdym folderze napisane jak odpalać skrypty z wiersza poleceń.

0

Rozumiesz o co w tym chodzi:

To reproduce the selection procedure used by “Computationally easy, spectrally good multipliers for congruential pseudorandom number generators” and by the LXM PRNG family of Java 17 described by Guy Steele and Sebastiano Vigna in “LXM: Better Splittable Pseudorandom Number Generators (and Almost as Fast)” you must run ./filterall.sh in a directory containing the databases of candidate multipliers. The script will generate aggregate files ending in -L which contain information about the minimum lagged score.

Mam przygotować jakaś bazę danych kandydatów na multipliers?

Jak na razie ./gensel.py 0.75 >best_harmonic.txt 2>best_minimum.txt nie działa. W pliku best minimum dostaję:

Traceback (most recent call last):
File "./gensel.py", line 77, in <module>
data = pd.read_csv(file, sep='\t', names = ['M₈', 'L₈', 'H₈', 'd', 'h', 'f₂', 'f₃', 'f₄', 'f₅', 'f₆', 'f₇', 'f₈'], index_col=False, dtype={'h':'str'})
File "/home/tomasz/.local/lib/python3.8/site-packages/pandas/util/_decorators.py", line 311, in wrapper
return func(*args, **kwargs)
File "/home/tomasz/.local/lib/python3.8/site-packages/pandas/io/parsers/readers.py", line 680, in read_csv
return _read(filepath_or_buffer, kwds)
File "/home/tomasz/.local/lib/python3.8/site-packages/pandas/io/parsers/readers.py", line 575, in _read
parser = TextFileReader(filepath_or_buffer, **kwds)
File "/home/tomasz/.local/lib/python3.8/site-packages/pandas/io/parsers/readers.py", line 933, in init
self._engine = self._make_engine(f, self.engine)
File "/home/tomasz/.local/lib/python3.8/site-packages/pandas/io/parsers/readers.py", line 1217, in _make_engine
self.handles = get_handle( # type: ignore[call-overload]
File "/home/tomasz/.local/lib/python3.8/site-packages/pandas/io/common.py", line 789, in get_handle
handle = open(
FileNotFoundError: [Errno 2] No such file or directory: 'LCG-32-16-L'

Nie wiem, czy to potrzebuje jakiegoś pliku CSV z kandydatami na dobre mnożniki?

1

Nie wiem, czy to potrzebuje jakiegoś pliku CSV z kandydatami na dobre mnożniki?

Ty tak serio?

The databases of candidate multipliers are available at http://vigna.di.unimi.it/CPRNG.tar.bz2. (The size of the bzip2 file is approximately 14 gigabytes; the unzipped data is approximately 36 gigabytes.)

1 użytkowników online, w tym zalogowanych: 0, gości: 1