fix missing cstring

v1
Brett 2023-11-17 01:47:24 -05:00
parent fd9fa5454d
commit 06f87c9734
1 changed files with 13 additions and 8 deletions

View File

@ -12,6 +12,7 @@
#include <blt/std/string.h>
#include <iomanip>
#include <sstream>
#include <cstring>
namespace blt::uuid
{
@ -163,24 +164,29 @@ namespace blt::uuid
std::stringstream ss;
int i;
ss << std::hex;
for (i = 0; i < 8; i++) {
for (i = 0; i < 8; i++)
{
ss << dis(gen);
}
ss << "-";
for (i = 0; i < 4; i++) {
for (i = 0; i < 4; i++)
{
ss << dis(gen);
}
ss << "-4";
for (i = 0; i < 3; i++) {
for (i = 0; i < 3; i++)
{
ss << dis(gen);
}
ss << "-";
ss << dis2(gen);
for (i = 0; i < 3; i++) {
for (i = 0; i < 3; i++)
{
ss << dis(gen);
}
ss << "-";
for (i = 0; i < 12; i++) {
for (i = 0; i < 12; i++)
{
ss << dis(gen);
};
@ -188,7 +194,6 @@ namespace blt::uuid
}
}
#endif //BLT_UUID_H