Fix a small mistake in the IfcGuidHelper, which still lacks an actual uuid implementation

This commit is contained in:
Thomas Krijnen
2012-07-20 00:12:47 +00:00
parent 3e95e7474b
commit f6e33313fb
+1 -1
View File
@@ -34,7 +34,7 @@ IfcWrite::IfcGuidHelper::IfcGuidHelper() {
if ( ! seeded ) { srand((unsigned int)time(0)); seeded = true; } if ( ! seeded ) { srand((unsigned int)time(0)); seeded = true; }
data.resize(length); data.resize(length);
for ( unsigned int i = 0; i < length; ++ i ) { 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 { IfcWrite::IfcGuidHelper::operator std::string() const {