class EL_UUID_FACTORY
Client examples: UUID_TEST_SET
Generates a UUID as a hash of number of millisecs since Unix epoch
note
description: "Generates a UUID as a hash of number of millisecs since Unix epoch"
author: "Finnian Reilly"
copyright: "Copyright (c) 2001-2022 Finnian Reilly"
contact: "finnian at eiffel hyphen loop dot com"
license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
date: "2023-12-18 11:49:53 GMT (Monday 18th December 2023)"
revision: "9"
class
EL_UUID_FACTORY
inherit
UUID_GENERATOR
rename
generate_uuid as new_uuid
redefine
new_uuid
end
feature -- Access
new_uuid: EL_UUID
local
u: UUID
do
u := Precursor
create Result.make (u.data_1, u.data_2, u.data_3, u.data_4, u.data_5)
end
end