Skip to content

Instantly share code, notes, and snippets.

@shreyansh26
Created November 19, 2019 05:56
Show Gist options
  • Save shreyansh26/de6a133660f7aff4f268558059086e23 to your computer and use it in GitHub Desktop.
Save shreyansh26/de6a133660f7aff4f268558059086e23 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
int main() {
int start = 1573776000; // 15th Nov 2019, 00:00 UTC
int end = 1573948800; // // 17th Nov 2019, 00:00 UTC
for(int i=start; i<end; i++) {
srand(i);
int a = rand();
int b = rand();
int c = rand();
int d = rand();
int e = rand();
int f = rand();
if(a==1068399227 && b==161933545 && c==741438783 && d==1951874661 && e==1076387813) {
printf("Seed: %d\n", i);
printf("Next: %d\n", f);
break;
}
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment