dimanche 30 juin 2019

Raw binary stream for dieharder using Matlab

I would like to use dieharder library to test a generator I made in Matlab.

According to the man page, we can use a raw binary stream as input for the dieharder function, like so :

cat /dev/urandom | ./dieharder -a -g 200

So, if I assume my random number generator is located in the function "generator.m", what command should I use?

Moreover, according to this question, I can't just use a "fprintf('%d')" function in Matlab to use the Dieharder library. In Python they are using the struct class, do you know what I should use in Matlab?




Aucun commentaire:

Enregistrer un commentaire