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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user