mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +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; }
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user