More corelib cleanup (dotnet/coreclr#26993)
[mono-project.git] / netcore / System.Private.CoreLib / shared / Interop / Windows / BCrypt / Interop.BCryptGenRandom.cs
blob1e6452f8fa9c790d924be5b4b0cef57d05303a9a
1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
5 using System;
6 using System.Runtime.InteropServices;
8 internal static partial class Interop
10 internal static partial class BCrypt
12 internal const int BCRYPT_USE_SYSTEM_PREFERRED_RNG = 0x00000002;
14 [DllImport(Libraries.BCrypt, CharSet = CharSet.Unicode)]
15 internal static extern unsafe NTSTATUS BCryptGenRandom(IntPtr hAlgorithm, byte* pbBuffer, int cbBuffer, int dwFlags);