feat: Random number seeding
This commit is contained in:
parent
7446804451
commit
a55d8f564f
2
main.c
2
main.c
|
@ -9,6 +9,7 @@
|
|||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
int SetupServer(int* socket_fd, int port) {
|
||||
printf("[Client] Starting Server\n");
|
||||
|
@ -65,6 +66,7 @@ int StartEnv(int port) {
|
|||
int client_size = sizeof(client_addr);
|
||||
int client_sock = accept(socket_fd, (struct sockaddr*)&client_addr, &client_size);
|
||||
|
||||
srand(time(NULL));
|
||||
int obs_size = sizeof(struct Observation);
|
||||
struct SS13ArcadeEnv env;
|
||||
CreateEnvironment(&env);
|
||||
|
|
Loading…
Reference in New Issue