v1
Brett 2023-08-18 02:21:22 -04:00
parent 6579a3f5cb
commit 1d03938f95
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ namespace blt::uuid
unsigned char hash[SHA_DIGEST_LENGTH]; unsigned char hash[SHA_DIGEST_LENGTH];
uuid_t result{}; uuid_t result{};
SHA1(c_str, sizeof(c_str) - 1, hash); SHA1(c_str, strlen(new_str.c_str()), hash);
memcpy(result.str, hash, 16); memcpy(result.str, hash, 16);