Ubuntu – Why does the c function srand() behave differently on Windows vs. Linux, where consecutive seeds produce the first consecutive random number?
Here we have a piece of c code that goes into a dead loop, reading the current timestamp and resetting the random seed each time, after which it prints a random number and sleeps for one second. The seeds are…