Commit Graph

13 Commits

Author SHA1 Message Date
tinko92
24e3e0db36 Fix for typo (LICENCE) and for https links to license (#103)
* Fix Typo in link to License.
* Changed links to https.
2019-04-22 08:56:05 -04:00
James E. King III
a8a1ec3d82 Changed the default random_generator implementation to use
operating-system provided entropy as it is more secure and
faster for the typical use case of generating one uuid at
a time.

This is a breaking change for anyone passing a mt19937
into one of the explicit constructors of random_generator,
which would be quite rare.

Changed the default random provider on Windows to use BCrypt
where available, falling back to Wincrypt when necessary or
when explicitly requested through a macro.

Provide a new random_generator_mt19937 type definition for
use cases where a large number of uuids need to be created
with high performance.  This is equivalent to the previous
definition of random_generator.

Provide a random generation benchmark test showing the
cutoff where the mt19937-based generator will outperform the
standard generator based on wall time.

Removed template specialization for boost::random::random_device
so that any UniformRandomNumberGenerator can be used properly
with random_generator.

Replaced the seed_rng detail implementation (which had a number
of flaws) with a replacement header-only random_provider
implementation.

Note: entropy generation errors will cause an entropy_error
to be thrown from random_generator.  The previous implementation
ignored errors and silently failed.

Added internal support for entropy generation on cloudabi
platform leveraging the new random_provider implementation.

Added internal support for Universal Windows Platform (UWP)
development leveraging the new random_provider implementation.

Added internal support for getentropy() on Linux and OpenBSD
if certain requirements are met.

This fixes #24
This closes #53
2017-12-18 09:56:02 -05:00
James E. King, III
b5adde4409 fix warnings identified by regression matrix 2017-11-01 08:59:25 -04:00
James E. King, III
7810839cd9 fix build error on cygwin 2017-10-31 21:08:54 -07:00
James E. King, III
797d47df61 improve coverage (except for hashing headers) to 100% 2017-10-31 17:27:11 -07:00
Erich Keane
2449c17c7a Added unit-tests for the std::left issue 2015-12-29 13:38:02 -08:00
Steven Watanabe
c430673e99 Revert [67111] (addition of boost/detail/iomanip.hpp) and all the commits that depend on it. ([68137], [68140], [68141], [68154], and [68165]).
[SVN r68168]
2011-01-15 08:11:51 +00:00
Bryce Adelstein-Lelbach
7380fd81c7 Replacing the use of <iomanip> with <boost/detail/iomanip.hpp> across Boost.
On Linux, GNU's libstdc++, which is the default stdlib for icc and clang,
cannot parse the <iomanip> header in version 4.5+ (which thankfully neither
compiler advises the use of yet), as it's original C++98-friendly
implementation has been replaced with a gnu++0x implementation.
<boost/detail/iomanip.hpp> is a portable implementation of <iomanip>, providing
boost::detail::setfill, boost::detail::setbase, boost::detail::setw,
boost::detail::setprecision, boost::detail::setiosflags and
boost::detail::resetiosflags. 



[SVN r68140]
2011-01-14 02:35:58 +00:00
Andy Tompkins
e90777d9ab Fixed bug in documentation (forgot a dash in 3 uuid strings).
Fixed test_io.cpp for some platforms for wstring (I hope).

[SVN r63940]
2010-07-13 00:17:38 +00:00
Andy Tompkins
4643be816d define BOOST_UUID_NO_TYPE_TRAITS to remove dependency on Boost.TypeTraits
stream operator<< now handles right, internal, left modifiers
added to_string, to_wstring to uuid_io.hpp

[SVN r63801]
2010-07-10 02:22:43 +00:00
Andy Tompkins
6ee1d64394 switch from the Boost Test Library to boost/detail/lightweight_test.hpp
moved uuid generators into their own file

[SVN r59535]
2010-02-06 22:32:49 +00:00
Andy Tompkins
c20490b273 used BOOST_STATIC_CONSTANT
fixed jamfile to use run rule
some other minor compile time fixes

[SVN r58075]
2009-12-01 03:00:34 +00:00
Andy Tompkins
f883e1ffc0 Added uuid library
[SVN r57988]
2009-11-28 04:16:43 +00:00