Why did you implement your own random number generator? You should use Boost.Random instead.

Boost.Random provides boost::random_device to tap into the operating system's strong random number generator. As of Boost 1.43, it now supports Windows as well. But, also as of Boost 1.43, it requires a compiled library, making it more difficult to use in examples. As such, I've left the xint::strong_random_generator class here as well. Anyone using the library is free to use boost::random_device (or any other Boost.Random device) if they wish.


© Copyright Chad Nelson, 2010-2011. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)