random_generator.hpp 912 B

123456789101112131415161718192021222324252627282930
  1. #ifndef BOOST_UUID_RANDOM_GENERATOR_HPP_INCLUDED
  2. #define BOOST_UUID_RANDOM_GENERATOR_HPP_INCLUDED
  3. // Copyright 2010 Andy Tompkins.
  4. // Copyright 2017 James E. King III
  5. // Copyright 2024 Peter Dimov
  6. // Distributed under the Boost Software License, Version 1.0.
  7. // https://www.boost.org/LICENSE_1_0.txt
  8. #include <boost/uuid/basic_random_generator.hpp>
  9. #include <boost/uuid/detail/random_device.hpp>
  10. #include <boost/uuid/detail/chacha20.hpp>
  11. namespace boost {
  12. namespace uuids {
  13. // the default random generator
  14. class random_generator: public basic_random_generator<detail::chacha20_12>
  15. {
  16. };
  17. // only provided for compatibility with 1.85
  18. using random_generator_mt19937 = basic_random_generator<std::mt19937>;
  19. // only provided for compatibility with 1.85
  20. using random_generator_pure = basic_random_generator<detail::random_device>;
  21. }} // namespace boost::uuids
  22. #endif // BOOST_UUID_RANDOM_GENERATOR_HPP_INCLUDED