We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f40b821 commit 75977d0Copy full SHA for 75977d0
MongoDB.Bson/ObjectModel/ObjectId.cs
@@ -47,7 +47,7 @@ public struct ObjectId : IComparable<ObjectId>, IEquatable<ObjectId>, IConvertib
47
// static constructor
48
static ObjectId()
49
{
50
- __staticMachine = GetMachineHash();
+ __staticMachine = (GetMachineHash() + AppDomain.CurrentDomain.Id) & 0x00ffffff; // add AppDomain Id to ensure uniqueness across AppDomains
51
__staticIncrement = (new Random()).Next();
52
53
try
0 commit comments