summaryrefslogtreecommitdiffstats
path: root/src/host/trxcon/trxcon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/host/trxcon/trxcon.c')
-rw-r--r--src/host/trxcon/trxcon.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/host/trxcon/trxcon.c b/src/host/trxcon/trxcon.c
index 55422403..43c98a5c 100644
--- a/src/host/trxcon/trxcon.c
+++ b/src/host/trxcon/trxcon.c
@@ -28,6 +28,7 @@
#include <getopt.h>
#include <unistd.h>
#include <signal.h>
+#include <time.h>
#include <arpa/inet.h>
@@ -293,6 +294,9 @@ int main(int argc, char **argv)
}
}
+ /* Initialize pseudo-random generator */
+ srand(time(NULL));
+
while (!app_data.quit)
osmo_select_main(0);