summaryrefslogtreecommitdiffstats
path: root/src/bin/perfdhcp
diff options
context:
space:
mode:
authorPiotrek Zadroga <piotrek@isc.org>2023-10-20 14:06:23 +0200
committerRazvan Becheriu <razvan@isc.org>2024-01-22 16:33:26 +0100
commit78acb9cec0a8105d8f626d40b891b47fb06b6578 (patch)
tree368306fcb739ee2f0ffb9d67764d1e0cb1bb8276 /src/bin/perfdhcp
parent[#3119] correct auto in for-loops (diff)
downloadkea-78acb9cec0a8105d8f626d40b891b47fb06b6578.tar.xz
kea-78acb9cec0a8105d8f626d40b891b47fb06b6578.zip
[#3119] static cast time_t to uint32
Diffstat (limited to 'src/bin/perfdhcp')
-rw-r--r--src/bin/perfdhcp/random_number_generator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/perfdhcp/random_number_generator.h b/src/bin/perfdhcp/random_number_generator.h
index ce5a386364..43a9ad6800 100644
--- a/src/bin/perfdhcp/random_number_generator.h
+++ b/src/bin/perfdhcp/random_number_generator.h
@@ -67,7 +67,7 @@ public:
}
// Init with the current time
- rng_.seed(time(NULL));
+ rng_.seed(time(0));
}
/// \brief Generate uniformly distributed integer