Cryptographic random number API.

Includes:
"APSCommonServices.h"
"APSDebugServices.h"
<stdlib.h>

Introduction

Provides APIs for getting cryptographic random numbers.



Functions

RandomBytes

Fills a buffer with cryptographically strong pseudo-random bytes.


RandomBytes


Fills a buffer with cryptographically strong pseudo-random bytes.

OSStatus RandomBytes(
    void *inBuffer,
    size_t inByteCount );  
Parameters
inBuffer

Buffer to receive random bytes. Must be at least inByteCount bytes.

inByteCount

Number of bytes to be filled into "inBuffer".