Skip to content

Commit f6e3331

Browse files
committed
Fix a small mistake in the IfcGuidHelper, which still lacks an actual uuid implementation
1 parent 3e95e74 commit f6e3331

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ifcparse/IfcGuidHelper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ IfcWrite::IfcGuidHelper::IfcGuidHelper() {
3434
if ( ! seeded ) { srand((unsigned int)time(0)); seeded = true; }
3535
data.resize(length);
3636
for ( unsigned int i = 0; i < length; ++ i ) {
37-
data[i] = chars[rand()%length];
37+
data[i] = chars[rand()%strlen(chars)];
3838
}
3939
}
4040
IfcWrite::IfcGuidHelper::operator std::string() const {

0 commit comments

Comments
 (0)