M_uuid(3f) - a module of UUID (Universally Unique IDentifier) procedures (LICENSE:BSD-4-Clause)
use M_uuid, only : generate_uuid
from Wikipedia … A universally unique identifier (UUID) is a 128-bit number used to identify information on computer systems. In particular, they are commonly used to create unique filenames and database and table keys.
When generated according to the standard methods, UUIDs are for practical purposes unique, without depending for their uniqueness on a central registration authority or coordination between the parties generating them, unlike most other numbering schemes. While the probability that a UUID will be duplicated is not zero, it is close enough to zero to be negligible.
Thus, anyone can create a UUID and use it to identify something with near certainty that the identifier does not duplicate one that has already been or will be created to identify something else. Information labeled with UUIDs by independent parties can therefore be later combined into a single database, or transmitted on the same channel, without needing to resolve conflicts between identifiers.
Adoption of UUIDs and GUIDs is widespread. Many computing platforms provide support for generating them, and for parsing their textual representation.
Note that several UUID types contain information that can be decyphered to recreate the creation time or the MAC address of the device that generated the UUID which has several uses for verifying when and where data was generated.
RFC 4122 defines a Uniform Resource Name (URN) namespace for UUIDs. A UUID presented as a URN appears as follows:
urn:uuid:123e4567-e89b-12d3-a456-426655440000
git clone https://github.com/urbanjost/M_uuid.git
cd M_uuid/src
# change Makefile if not using one of the listed compilers
# for gfortran
make clean
make F90=gfortran gfortran
# for ifort
make clean
make F90=ifort ifort
# for nvfortran
make clean
make F90=nvfortran nvfortran
This will compile the Fortran module and basic example program that exercise the routine.
Alternatively, download the github repository and build it with fpm ( as described at Fortran Package Manager )
bash
git clone https://github.com/urbanjost/M_uuid.git
cd M_uuid
fpm run "*"
fpm run --example "*"
fpm test
or just list it as a dependency in your fpm.toml project file.
[dependencies]
M_uuid = { git = "https://github.com/urbanjost/M_uuid.git" }
A single page that uses javascript to combine all the HTML descriptions of the man-pages is at BOOK_M_uuid.
a simple index to the man-pages in HTML form for the routines and programs
There are man-pages in the repository download in the docs/ directory that may be installed on ULS (Unix-Like Systems).
CHANGELOG provides a history of significant changes
This is a modified version of generate_uuid(3f). generate_uuid(3f) was originally derived from the xmlf90 codebase, (c) Alberto Garcia & Jon Wakelin, 2003-2004. It also calls RNG routines from Scott Ladd scott.ladd@coyotegulch.com, and the libFoX modules. Although some sections have been replaced, generate_uuid(3f) was originally based on the libFoX version.