1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Mask 16 bits on random number generated on traceroute example

Fixes #121
This commit is contained in:
Matias Fontanini
2016-01-10 16:41:27 -08:00
parent b21154a926
commit 3d3d7b8506

View File

@@ -70,7 +70,7 @@ public:
Traceroute(NetworkInterface interface, IPv4Address address)
: iface(interface), addr(address), lowest_dest_ttl(numeric_limits<int>::max()) {
sequence = random_device()();
sequence = random_device()() & 0xffff;
}
result_type trace() {