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.
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
);