Fix note stated in
#include <util/str_stl.h>
/**
- * GUID (UUID) generation
+ * UUID generation
+ *
+ * NOTE: It is not a real GUID (RFC 4122), as described in
* https://en.wikipedia.org/wiki/Universally_unique_identifier
* https://en.wikipedia.org/wiki/Globally_unique_identifier
+ *
+ * See https://clubs.at.yandex-team.ru/stackoverflow/10238/10240
+ * and https://st.yandex-team.ru/IGNIETFERRO-768 for details.
**/
-
struct TGUID {
ui32 dw[4] = {};
@@ -46,7 +50,14 @@ struct THash<TGUID> {
}
};
+/**
+ * NOTE: Not fork()-safe, see IGNIETFERRO-610
+ **/
void CreateGuid(TGUID* res);
+
+/**
+ * NOTE: Not fork()-safe, see IGNIETFERRO-610
+ **/
TString GetGuidAsString(const TGUID& g);
TString CreateGuidAsString();
TGUID GetGuid(const TString& s);
