• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Plugin] samp-uuid-rs
#1
samp-uuid-rs



[Image: sampctl-samp--uuid--rs-2f2f2f.svg?style=for-the-badge]



This library provides a UUID v4?generator function.



UUIDs are generally used for identifying information that needs to be unique within a system or network thereof. Their uniqueness and low probability in being repeated makes them useful for being associative keys in databases and identifiers for physical hardware within an organization.



Installation



Simply install to your project:



Code:
sampctl package install carlos-menezes/samp-uuid-rs



Include in your code and begin using the library:



Quote:

#include <uuid>




Usage



Code:
new dest[UUID_LEN];

UUID(dest);

printf("%s", dest); // xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx



Build



To build, run:



Code:
make build



Testing



To test, run:



Code:
make test
  Reply


Forum Jump: