// Copyright (c) 2018 James E. King III // Copyright (c) 2024 Peter Dimov // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt #include #include #include #include int main() { using namespace boost::uuids; random_generator gen; for( int i = 0; i < 256; ++i ) { uuid u = gen(); std::size_t v = hash_value( u ); BOOST_TEST_EQ( boost::hash()( u ), v ); BOOST_TEST_EQ( std::hash()( u ), v ); } return boost::report_errors(); }