Skip to content

Commit

Permalink
using new uuidData
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanlm committed Jun 14, 2023
1 parent b5f5726 commit c66db64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mc/Mongo-BSON/OID.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Class {
'counter',
'machineIdentifier'
],
#category : 'Mongo-BSON-Base'
#category : #'Mongo-BSON-Base'
}

{ #category : #accessing }
Expand Down Expand Up @@ -56,7 +56,7 @@ OID class >> newCounter [
OID class >> newMachineIdentifier [
"Used to be an MD5 hash of local hostname, but that primitive always returns 'localhost' on at least Macs...
Use a UUID instead, it will be different for the same machine after restarts, but the OID should never be used to identify a documents origin anyways."
^ UUID new
^ UUID new uuidData
]

{ #category : #'instance creation' }
Expand Down

0 comments on commit c66db64

Please sign in to comment.