Skip to content

Commit

Permalink
use random value instead of timestamp for id generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Kippe committed May 24, 2011
1 parent 9a82824 commit 4d57938
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/uuid_extension.rb
Expand Up @@ -6,6 +6,6 @@ module UuidExtension
end

def set_id
self.id ||= ::UUIDTools::UUID.timestamp_create.to_s
self.id ||= ::UUIDTools::UUID.random_create.to_s
end
end
end
4 changes: 2 additions & 2 deletions lib/uuid_extension/version.rb
@@ -1,3 +1,3 @@
module UuidExtension
VERSION = "1.0.3"
end
VERSION = "1.0.4"
end

0 comments on commit 4d57938

Please sign in to comment.