Package Info

perl-UUID-Tiny


Pure Perl UUID Support With Functional Interface


Development/Libraries/Perl

UUID::Tiny is a lightweight, low dependency Pure Perl module for UUID creation and testing. This module provides the creation of version 1 time based UUIDs (using random multicast MAC addresses), version 3 MD5 based UUIDs, version 4 random UUIDs, and version 5 SHA-1 based UUIDs.

ATTENTION! UUID::Tiny uses Perl's 'rand()' to create the basic random numbers, so the created v4 UUIDs are not cryptographically strong!

No fancy OO interface, no plethora of different UUID representation formats and transformations - just string and binary. Conversion, test and time functions equally accept UUIDs and UUID strings, so don't bother to convert UUIDs for them!

Continuing with 1.0x versions all constants and public functions are exported by default, but this will change in the future (see below).

UUID::Tiny deliberately uses a minimal functional interface for UUID creation (and conversion/testing), because in this case OO looks like overkill to me and makes the creation and use of UUIDs unnecessarily complicated.

If you need raw performance for UUID creation, or the real MAC address in version 1 UUIDs, or an OO interface, and if you can afford module compilation and installation on the target system, then better look at other CPAN UUID modules like the Data::UUID manpage.

This module is "fork safe", especially for random UUIDs (it works around Perl's rand() problem when forking processes).

This module is currently not "thread safe". Even though I've incorporated some changes proposed by Michael G. Schwern (thanks!), Digest::MD5 and Digest::SHA seem so have trouble with threads. There is a test file for threads, but it is de-activated. So use at your own risk!


License: Artistic-1.0 or GPL-1.0+
URL: http://search.cpan.org/dist/UUID-Tiny/

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
1.04-bp155.1.5 info GA Release 2023-05-17 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-UUID-Tiny