Update main.c seed random generator for random mode

master-r
Alan Johnston 1 week ago committed by GitHub
parent 5cf74d8096
commit e6d9e7a0bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -91,6 +91,7 @@ int main(int argc, char * argv[]) {
fail_rnd_mode = TRUE; fail_rnd_mode = TRUE;
fprintf(stderr, "Random fail mode is ON\n"); fprintf(stderr, "Random fail mode is ON\n");
failTime = millis(); failTime = millis();
srand((unsigned int)time(0));
} }
FILE * command_file = fopen("/home/pi/CubeSatSim/command_control", "r"); FILE * command_file = fopen("/home/pi/CubeSatSim/command_control", "r");

Loading…
Cancel
Save

Powered by TurnKey Linux.