You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where info contains a string in format "MTI-PC-15179-54281-4576-46682c" which is made out of:
PC name: "MTI-PC"
And the rest four blocks of numbers are some other unique ids of hardware modules in the PC.
Boost takes the above string in and returns GUID.
How do I do the same thing but with stduuid?
In the examples I found this:
uuids::uuid_name_generator dgen(uuids::uuid::from_string("47183823-2574-4bfd-b411-99ed177d3e43").value());
auto id1 = dgen("john");
REQUIRE(!id1.is_nil());
REQUIRE(id1.version() == uuids::uuid_version::name_based_sha1);
What string should go into dgen() in this case?Some arbitraryGUI string? If I put into it "MTI-PC-15179-54281-4576-46682c" it crashes at .value() return.
Thanks.
The text was updated successfully, but these errors were encountered:
Hi.
I am using boost to generate uid like this:
Where info contains a string in format "MTI-PC-15179-54281-4576-46682c" which is made out of:
PC name: "MTI-PC"
And the rest four blocks of numbers are some other unique ids of hardware modules in the PC.
Boost takes the above string in and returns GUID.
How do I do the same thing but with stduuid?
In the examples I found this:
What string should go into dgen() in this case?Some arbitraryGUI string? If I put into it "MTI-PC-15179-54281-4576-46682c" it crashes at .value() return.
Thanks.
The text was updated successfully, but these errors were encountered: