From f6e33313fb033bc70d747acf1bd076b7c0200ca9 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Fri, 20 Jul 2012 00:12:47 +0000 Subject: [PATCH] Fix a small mistake in the IfcGuidHelper, which still lacks an actual uuid implementation --- src/ifcparse/IfcGuidHelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcparse/IfcGuidHelper.cpp b/src/ifcparse/IfcGuidHelper.cpp index d0c6242e94..206df8fba4 100644 --- a/src/ifcparse/IfcGuidHelper.cpp +++ b/src/ifcparse/IfcGuidHelper.cpp @@ -34,7 +34,7 @@ IfcWrite::IfcGuidHelper::IfcGuidHelper() { if ( ! seeded ) { srand((unsigned int)time(0)); seeded = true; } data.resize(length); for ( unsigned int i = 0; i < length; ++ i ) { - data[i] = chars[rand()%length]; + data[i] = chars[rand()%strlen(chars)]; } } IfcWrite::IfcGuidHelper::operator std::string() const {