lib/atome/kernel/universe.rb in atome-0.5.6.3.6 vs lib/atome/kernel/universe.rb in atome-0.5.6.3.9
- old
+ new
@@ -121,13 +121,18 @@
@atomes.each do |id_found, atome_found|
collected_id << id_found if atome_found.tag && atome_found.tag[:system]
end
collected_id
end
-
+ def generate_uuid
+ uuid = SecureRandom.uuid.gsub('-','')
+ formatted_time = Time.now.strftime("%Y%m%d%H%M%S")
+ "#{uuid}#{formatted_time}"
+ end
def app_identity
- # each app hav its own identity, this allow to generate new user identities from th
- @app_identity = 369
+ # each app hav its own identity, this allow to generate new user identities from the
+ # unique_id = generate_unique_id_with_timestamp
+ @app_identity = generate_uuid
# the identity is define as follow : parentsCreatorID_softwareInstanceID_objetID
# in this case parents is eve so 0, Software instance number is main eVe server which is also 0,
# and finally the object is 3 as this the third object created by the main server
end