Burgershot
[Plugin] samp-uuid-rs - Printable Version

+- Burgershot (https://www.burgershot.gg)
+-- Forum: SA-MP (https://www.burgershot.gg/forumdisplay.php?fid=3)
+--- Forum: Releases (https://www.burgershot.gg/forumdisplay.php?fid=13)
+---- Forum: Plugins (https://www.burgershot.gg/forumdisplay.php?fid=32)
+---- Thread: [Plugin] samp-uuid-rs (/showthread.php?tid=2161)



samp-uuid-rs - Carlos - 2021-07-10

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