fork(5) download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <time.h>
  4.  
  5. int main(void) {
  6. int Key, map[18] = {4,10,12,17,7,2,14,9,13,1,11,0,16,5,8,3,15,6};
  7. char pass[19],temp[64];
  8. unsigned long long int a;
  9. srand(time(0)); a = rand();
  10. Key = 223321971+a%(323321970-223321971);
  11. a = 462342247;
  12. a*= Key^394788811;
  13. sprintf( temp, "%018llu", a );
  14. for( int i=0; i<18; i++ ) pass[map[i]]=temp[i];
  15. pass[18]=0;
  16. printf("psw=%s\n",pass);
  17. }
  18.  
Success #stdin #stdout 0.02s 2680KB
stdin
Standard input is empty
stdout
psw=503119232098424715