Sponsored Content
The Lounge What is on Your Mind? Please Welcome Simon Sweetman (Chubler_XL) to the Moderator Team Post 303041568 by Scrutinizer on Thursday 28th of November 2019 12:32:46 AM
Old 11-28-2019
Hey Simon, welcome to the team. I have enjoyed your high quality contributions. Well deserved!
 

3 More Discussions You Might Find Interesting

1. What is on Your Mind?

to any moderator ..

:) i have made new title for myself since i am very serious about unix I thought that it might reflect this a little and also help me to gain some more self esteem to be more dillegent in my questions and answers to others.. I have an avatar but I am not quite sure how to apply it. if any moderator... (5 Replies)
Discussion started by: moxxx68
5 Replies

2. What is on Your Mind?

Please Welcome Nicki Paul to the Moderator Team!

Dear All, I am very pleased to inform everyone that Nicki Paul (zxmaus) is joining the Moderation Team after a number of years away from the site. Nicki used to be very active here (over 800 posts), and she got busy with travel, work, family and her dogs, and we have missed her. Now she is... (7 Replies)
Discussion started by: Neo
7 Replies

3. What is on Your Mind?

Please Welcome Dave Munro to the Moderator Team!

Dear All, I am very pleased to announce that Dave Munro (gull04) is joining the Moderation Team, after being a very valuable member of UNIX.com for 15+ years. Dave is an IT Consultant with 30 years of experience this year, has worked in many of the industry vertical market segments and has... (6 Replies)
Discussion started by: Neo
6 Replies
UUID_GENERATE(3)						    Libuuid API 						  UUID_GENERATE(3)

NAME
uuid_generate, uuid_generate_random, uuid_generate_time - create a new unique UUID value SYNOPSIS
#include <uuid/uuid.h> void uuid_generate(uuid_t out); void uuid_generate_random(uuid_t out); void uuid_generate_time(uuid_t out); DESCRIPTION
The uuid_generate function creates a new universally unique identifier (UUID). The uuid will be generated based on high-quality randomness from /dev/urandom, if available. If it is not available, then uuid_generate will use an alternative algorithm which uses the current time, the local ethernet MAC address (if available), and random data generated using a pseudo-random generator. The uuid_generate_random function forces the use of the all-random UUID format, even if a high-quality random number generator (i.e., /dev/urandom) is not available, in which case a pseudo-random generator will be subsituted. Note that the use of a pseudo-random generator may compromise the uniqueness of UUID's generated in this fashion. The uuid_generate_time function forces the use of the alternative algorithm which uses the current time and the local ethernet MAC address (if available). This algorithm used to be the default one used to generate UUID, but because of the use of the ethernet MAC address, it can leak information about when and where the UUID was generated. This can cause privacy problems in some applications, so the uuid_gener- ate function only uses this algorithm if a high-quality source of randomness is not available. The UUID is 16 bytes (128 bits) long, which gives approximately 3.4x10^38 unique values (there are approximately 10^80 elemntary particles in the universe according to Carl Sagan's Cosmos). The new UUID can reasonably be considered unique among all UUIDs created on the local system, and among UUIDs created on other systems in the past and in the future. RETURN VALUE
The newly created UUID is returned in the memory location pointed to by out. CONFORMING TO
OSF DCE 1.1 AUTHOR
Theodore Y. Ts'o AVAILABILITY
libuuid is part of the util-linux-ng package since version 2.15.1 and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux- ng/. SEE ALSO
uuid(3), uuidgen(1), uuid_clear(3), uuid_compare(3), uuid_copy(3), uuid_is_null(3), uuid_parse(3), uuid_time(3), uuid_unparse(3) util-linux-ng May 2009 UUID_GENERATE(3)
All times are GMT -4. The time now is 09:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy