[Liblas-commits] hg: unix linefeeds
liblas-commits at liblas.org
liblas-commits at liblas.org
Mon Nov 1 11:32:38 EDT 2010
changeset 81c161f9e43a in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=81c161f9e43a
summary: unix linefeeds
diffstat:
include/liblas/guid.hpp | 42 +++++++++++++++++++++---------------------
1 files changed, 21 insertions(+), 21 deletions(-)
diffs (52 lines):
diff -r 96c022e7f627 -r 81c161f9e43a include/liblas/guid.hpp
--- a/include/liblas/guid.hpp Mon Nov 01 09:43:41 2010 -0500
+++ b/include/liblas/guid.hpp Mon Nov 01 10:32:17 2010 -0500
@@ -80,27 +80,27 @@
namespace liblas {
-namespace detail {
-
- inline boost::uint8_t random_byte()
- {
- // Change seed to something better?
-
- typedef boost::mt19937 engine_t;
- typedef boost::uniform_int<unsigned long> distribution_t;
- typedef boost::variate_generator<engine_t, distribution_t> generator_t;
-
- static generator_t generator(
- engine_t(static_cast<engine_t::result_type>( std::time(0) )),
- // this line should work and does, but it produces lots of warnings
- // thus we will use unsigned long and cast it to a uint8_t
- //distribution_t((std::numeric_limits<uint8_t>::min)(), (std::numeric_limits<uint8_t>::max)()));
- distribution_t((std::numeric_limits<unsigned long>::min)(), (std::numeric_limits<unsigned long>::max)()));
-
- return static_cast<boost::uint8_t>(generator() & 0xFF);
- }
-
-} // namespace detail
+namespace detail {
+
+ inline boost::uint8_t random_byte()
+ {
+ // Change seed to something better?
+
+ typedef boost::mt19937 engine_t;
+ typedef boost::uniform_int<unsigned long> distribution_t;
+ typedef boost::variate_generator<engine_t, distribution_t> generator_t;
+
+ static generator_t generator(
+ engine_t(static_cast<engine_t::result_type>( std::time(0) )),
+ // this line should work and does, but it produces lots of warnings
+ // thus we will use unsigned long and cast it to a uint8_t
+ //distribution_t((std::numeric_limits<uint8_t>::min)(), (std::numeric_limits<uint8_t>::max)()));
+ distribution_t((std::numeric_limits<unsigned long>::min)(), (std::numeric_limits<unsigned long>::max)()));
+
+ return static_cast<boost::uint8_t>(generator() & 0xFF);
+ }
+
+} // namespace detail
/// Definition of Globally Unique Identifier type.
/// The GUID is a 16-byte (128-bit) number.
More information about the Liblas-commits
mailing list