windows-nt/Source/XPSP1/NT/ds/security/protocols/schannel/spbase/rng.c

25 lines
554 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1995.
//
// File: rng.c
//
// Contents:
//
// Classes:
//
// Functions:
//
// History: 11-05-97 jbanes Modified to use static rsaenh.dll.
//
//----------------------------------------------------------------------------
#include <spbase.h>
VOID GenerateRandomBits(PUCHAR pbBuffer,
ULONG dwLength)
{
CryptGenRandom(g_hRsaSchannel, dwLength, pbBuffer);
}