Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <time.h>
- #define KEYSIZE 16
- void main()
- {
- int i,t;
- char key[KEYSIZE];
- int first_timestamp = 1524013729;
- int last_timestamp = 1524020929;
- // For loop for all seed values i.e. all timestamps
- for (t = first_timestamp; t< last_timestamp+1; t++)
- {
- srand (t); // initialises PRNG
- for (i = 0; i< KEYSIZE; i++)
- {
- key[i] = rand()%256;
- printf("%.2x", (unsigned char)key[i]);
- }
- printf("\n");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement