Skip to content

Commit ee82553

Browse files
committed
Add browser support for WebAssembly
1 parent 7ae500a commit ee82553

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/SequentialGuid/SequentialGuid.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@
55
<Description>Will generate Sequential Guids based on MongoDB's ObjectId specification. Date &amp; time are encoded into the value so you do not need to store them separately in your database. Supports standard Guids as well as SQL Server guids.</Description>
66
</PropertyGroup>
77

8+
<ItemGroup>
9+
<SupportedPlatform Include="browser" />
10+
</ItemGroup>
11+
812
</Project>

src/SequentialGuid/SequentialGuidGeneratorBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ protected SequentialGuidGeneratorBase()
2727
{
2828
_increment = new Random().Next(500000);
2929
_machinePid = new byte[5];
30-
using (var algorithm = MD5.Create())
30+
using (var algorithm = SHA512.Create())
3131
{
3232
var hash = algorithm.ComputeHash(Encoding.UTF8.GetBytes(Environment.MachineName));
3333
// use first 3 bytes of hash

0 commit comments

Comments
 (0)