mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 21:42:19 +00:00
Fix a small mistake in the IfcGuidHelper, which still lacks an actual uuid implementation
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user