diff --git a/framework/src/Volo.Abp.Guids/Volo/Abp/Guids/SequentialGuidGenerator.cs b/framework/src/Volo.Abp.Guids/Volo/Abp/Guids/SequentialGuidGenerator.cs index 40435d017b..32fde2ce9c 100644 --- a/framework/src/Volo.Abp.Guids/Volo/Abp/Guids/SequentialGuidGenerator.cs +++ b/framework/src/Volo.Abp.Guids/Volo/Abp/Guids/SequentialGuidGenerator.cs @@ -2,7 +2,6 @@ using System.Security.Cryptography; using Microsoft.Extensions.Options; using Volo.Abp.DependencyInjection; -using Volo.Abp.Threading; namespace Volo.Abp.Guids { @@ -32,7 +31,7 @@ namespace Volo.Abp.Guids { // We start with 16 bytes of cryptographically strong random data. var randomBytes = new byte[10]; - RandomNumberGenerator.Locking(r => r.GetBytes(randomBytes)); + RandomNumberGenerator.GetBytes(randomBytes); // An alternate method: use a normally-created GUID to get our initial // random data: