mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
DirtySDK (EA's Dirty Sockets library) will be used for the LiveAPI implementation, and depends on: EABase, EAThread.
54 lines
1.2 KiB
C
54 lines
1.2 KiB
C
/*H********************************************************************************/
|
|
/*!
|
|
\File cryptrand.h
|
|
|
|
\Description
|
|
Cryptographic random number generator. Uses system-defined rng where
|
|
available.
|
|
|
|
\Copyright
|
|
Copyright (c) 2012 Electronic Arts Inc.
|
|
|
|
\Version 12/05/2012 (jbrookes) First Version
|
|
*/
|
|
/********************************************************************************H*/
|
|
|
|
#ifndef _cryptrand_h
|
|
#define _cryptrand_h
|
|
|
|
/*!
|
|
\Moduledef CryptRand CryptRand
|
|
\Modulemember Crypt
|
|
*/
|
|
//@{
|
|
|
|
/*** Include files ****************************************************************/
|
|
|
|
#include "DirtySDK/platform.h"
|
|
|
|
/*** Defines **********************************************************************/
|
|
|
|
/*** Macros ***********************************************************************/
|
|
|
|
/*** Type Definitions *************************************************************/
|
|
|
|
/*** Variables ********************************************************************/
|
|
|
|
/*** Functions ********************************************************************/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
// get random data
|
|
DIRTYCODE_API void CryptRandGet(uint8_t *pBuffer, int32_t iBufSize);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
//@}
|
|
|
|
#endif // _cryptrand_h
|
|
|