Author: 7cherubin
Date: 2022-01-03 15:22
Summary: The program calls a function which generates the secret number. time(0) is called to get a seed for its pseudorandomizer algorithm. Then it performs a few simple calculations against the seed and converts it into a floating point number. It proceeds to perform some further calculations and returns and stores the number. The program then requests input from the user. Another function is called where the guess is converted into a floating point value. If the secret number and the user's guess are the same, as a truncated value, then the program ends up at the success branch whithin a separate "decision" function which prints the result.
The aforementioned solution, however, does not explain the strange number that is printed before the program exits. Out of curiosity I decided to investigate and found out that the program simply prints that address. Maybe an easter egg? 420... blaze it? 69... best position? 18... yeah...
Loading writeup...