Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

unbreaable encryption

Name: Anonymous 2009-04-29 20:57


#include <stdio.h>

int main(int argc, char **argv)
{
    FILE *f = fopen(argv[1],"rt")
    fseek(f,0,SEEK_END);
    int length = ftell(f);
    fseek(f,0,SEEK_CUR);
   
    char fdata[length];
    fread(f,1,length,ftell);
    fclose(f);

    f = fopen("output.txt","wt");
    fwrite(fdata,1,length,f);
    fclose(f);

    return 0;
}

Name: Anonymous 2009-04-30 2:47

>>10
http://en.wikipedia.org/wiki/Hardware_random_number_generator#Dealing_with_bias

No source of true randomness is guarunteed to generate bits with equal probability, and any adjustments to account for this will by extension need to use psuedo-randomness, or other hardware randomness which in itself is not guarunteed to nullify the bias etc.. Not to mention- that beyond having to perfectly balance a supposedly "truly random" infinite decimal expansion on 0.5000...., you would also need to guaruntee constantness in the environment- or constantness in randomness of the envionemnt so far in that the random number generation shows no bias in this regard either.

A far more elegant reason, which is yet to be proven would be the computable universe theory, which in effect would mean that any physical "randomness" would in effect itself be deterministic on the state of the universe at the instant of time immediately preceeding itself. That is, you could, given an initial state of the universe calculate the state of said universe at any point of time in the future (with enough resources- and ironically no universe has enough resources to simulate itself).

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List