We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e95e74 commit f6e3331Copy full SHA for f6e3331
src/ifcparse/IfcGuidHelper.cpp
@@ -34,7 +34,7 @@ IfcWrite::IfcGuidHelper::IfcGuidHelper() {
34
if ( ! seeded ) { srand((unsigned int)time(0)); seeded = true; }
35
data.resize(length);
36
for ( unsigned int i = 0; i < length; ++ i ) {
37
- data[i] = chars[rand()%length];
+ data[i] = chars[rand()%strlen(chars)];
38
}
39
40
IfcWrite::IfcGuidHelper::operator std::string() const {
0 commit comments