scarpet
scarpet copied to clipboard
Add UUIDs.scl
Functions:
- generate_uuid()
- generate_uuid_string()
- uuid_to_string(uuid)
- string_to_uuid(string)
Included utility functions:
- hex_to_number(string)
Should it go into fundamentals ?
yo bisumto, numbers in scarpet are stored in longs, so you can go with full 64 bits
Should it go into
fundamentals?
IMO it should, I think that should be our 'library' folder (i.e the folder for libraries)
ok, the bitwise operations can be removed once gnembon/fabric-carpet#1094 is merged.
Adding label cos its technically waiting on gnembon/fabric-carpet#1094
I think the label should be removed now that gnembon/fabric-carpet#1094 has been merged. ~~This just needs to be moved to fundamentals then?~~
Looks like hex precision isn't working and is instead reporting the entire number? Might just be on my end. Using carpet 1.4.51
I think I found the issue: I'm assuming that the number is an integer while making bitwise operations. It is a double/long instead...
Does it work? I'm not sure 😅 It didn't work last time I tested it (when I added the mhh label)
I mean its working pretty well for me in carpet 1.4.56.
Version identifier is correct, so is variety.
Edit: Also tested generating string uuid, converting to int and back to string. All working over here chief.
I'm surprised 😅