From: dpb on
mathew(a)upb wrote:
> One of the requirements of the bin file for DH testing, as notified by the program is as follows -
>
> ***
> Enter the name of the file to be tested.
> This must be a form="unformatted",access="direct" binary
> file of about 10-12 million bytes. Enter file name:
> ***

That is a Fortran unformatted file description, not stream.

Generally, Fortran unformatted records are described by a leading and
trailing 32-bit (or 64-bit for those compilers/OS combinations that
support same) record length value surrounding the data. This isn't
guaranteed by the Fortran Standard but is common enough implementation
that it would be a starting point if you can't simply use a Fortran
compiler to write it.

--
From: Jan Simon on
Dear Mathew!

Marsaglia wrote:

2) Write a main program that sends the (hex) output of your random
number procedure to an ordinary ascii file.

Then use ASC2BIN.EXE included in the diehard test suite.

Good luck, Jan
First  |  Prev  | 
Pages: 1 2
Prev: how to run a GUI in simulink
Next: IEEE ARTICLE