Re: random number code.

New Message Reply About this list Date view Thread view Subject view Author view

steven.soroka@mts.mb.ca
Fri, 21 Aug 1998 17:29:27 -0500


>> another dumb question from a beginner.. . I wrote something to create 2M
of
>> pseudo-random characters, and when
>> I compressed it using -ex (extra compression) with pkzip, it got larger
by
>> 114 bytes, does this neccesarily mean that it's
>> safe to use for a one-time pad and secure from cryptanalysis?
>
>No. It means that your pseudo-random data has passed a very rudimentary
>first test. There may still be a lot of structure in that data, structure
>that pkzip did not find.
>
>On the other hand, if pkzip had made the file smaller, it would have been
>a sure sign the data was not "random".
Are there other ways to test the data?

I've counted the occurances of each byte, they seem to be within a few
hundred
of eachother when I generated a million of them... so it doesn't seem to be
too
biased with any certain characters..

Would generating two huge random documents like this and then xoring them
together
have any value?? If there were two bytes the same at the same position, I
could
count the number of '00000000' bit sets that show up...

something I did find strange, was in a few places, it would have "A%A" or
"7?7" ... I think that might be a bit of a problem.. (although "[A]"
probably
isn't)...


New Message Reply About this list Date view Thread view Subject view Author view

 
All trademarks and copyrights are the property of their respective owners.

Other Directory Sites: SeekWonder | Directory Owners Forum

The following archive was created by hippie-mail 7.98617-22 on Sat Apr 10 1999 - 01:11:00