Leaked source code of windows server 2003
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
//+---------------------------------------------------------------------------
//
// 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>
NTSTATUS GenerateRandomBits(PUCHAR pbBuffer, ULONG dwLength) { if(!CryptGenRandom(g_hRsaSchannel, dwLength, pbBuffer)) { return STATUS_INSUFFICIENT_RESOURCES; }
return STATUS_SUCCESS; }
|