Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdint.h>
- int is_correct(uint32_t seed) {
- uint8_t hexkey[] = "\xA4\x3D\xF6\xF3\x74";
- for (uint32_t i = 0, x = seed; i < 5; ++i) {
- x = (214013 * x + 2531011) & 0xFFFFFF;
- printf("%X\n", x);
- if (hexkey[i] != (x >> 16)) return 0;
- }
- return 1;
- }
- int main(int argc, char *argv[])
- {
- is_correct(0x12766B);
- return 0;
- for (uint32_t seed = 0; seed < (1 << 24); seed++)
- if (is_correct(seed))
- printf("Seed: %03X\n", seed);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement