aboutsummaryrefslogtreecommitdiff
path: root/src/ptunnel.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2019-03-29 01:09:16 +0100
committerToni Uhlig <matzeton@googlemail.com>2019-03-29 01:13:23 +0100
commitad688f7b47afbed5c6e4a9f708c93e1c0d7f8b78 (patch)
tree6c15b67b2c51c559178cb8696e8402ff4621261d /src/ptunnel.c
parentda8d892491d18be9980970596f55ba369340a333 (diff)
change the path to the random number generator during build time (see PR #11)
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/ptunnel.c')
-rw-r--r--src/ptunnel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ptunnel.c b/src/ptunnel.c
index 4463077..01e0ef5 100644
--- a/src/ptunnel.c
+++ b/src/ptunnel.c
@@ -136,6 +136,9 @@ int main(int argc, char *argv[]) {
if (parse_options(argc, argv))
return -1;
+ /* Init ptunnel RNG */
+ pt_random();
+
#ifdef HAVE_PCAP
if (opts.pcap && opts.udp) {
pt_log(kLog_error, "Packet capture is not supported (or needed) when using UDP for transport.\n");