7/11/2023 0 Comments Uuid generator linuxI feel I must reiterate a point I made earlier: The "UUID" values reported for NTFS and FAT volumes are not UUIDs! They're serial numbers that play the same role on NTFS/FAT that UUIDs serve on most Linux-native filesystems, but they aren't UUIDs. Manufacturer's quality control issue for hard drives: they would have the option of ensuring randomness as far as it is possible. Note that the use of a pseudo-random generator may compromise the uniqueness of UUIDs generated in this fashion. ![]() 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 substituted. 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 will be generated based on high-quality randomness from /dev/urandom, if available. The uuid_generate function creates a new universally unique identifier (UUID). Since the identifiers have a finite size, it is possible for two differing items to share the same identifierThe identifier size and generation process need to be selected so as to make this sufficiently improbable in practice In this context the word unique should be taken to mean "practically unique" rather than "guaranteed unique".
0 Comments
Leave a Reply. |