]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2380] reverted some changes
authorRazvan Becheriu <razvan@isc.org>
Thu, 22 Jun 2023 04:28:17 +0000 (07:28 +0300)
committerRazvan Becheriu <razvan@isc.org>
Thu, 22 Jun 2023 04:28:17 +0000 (07:28 +0300)
src/lib/dhcpsrv/ip_range_permutation.h

index cb4c0bdc72911a5961575f468bc1c009e96e8943..ca7a5aea2c5616684b47d4a910236424bc3191bb 100644 (file)
@@ -13,7 +13,7 @@
 
 #include <boost/shared_ptr.hpp>
 
-#include <unordered_map>
+#include <map>
 #include <random>
 
 namespace isc {
@@ -129,13 +129,13 @@ private:
     /// Keeps the current permutation state. The state associates the
     /// swapped IP addresses or delegated prefixes with their positions in
     /// the permutation.
-    std::unordered_map<isc::util::uint128_t, asiolink::IOAddress> state_;
+    std::map<isc::util::uint128_t, asiolink::IOAddress> state_;
 
     /// Indicates if the addresses or delegated prefixes are exhausted.
     bool done_;
 
     /// Random generator.
-    std::mt19937_64 generator_;
+    std::mt19937 generator_;
 };
 
 /// @brief Pointer to the @c IPRangePermutation.