www.beck-ipc.com

@CHIP-RTOS C Library - TCP/IP API


Crypt_Random_Bytes

Generate a stream of pseudo random bytes.

int far Crypt_Random_Bytes (
             unsigned char far *buf,
             unsigned int length ) ;

Parameters

buf

[out]   The random data will be written here.

length

[in]   Number of bytes to generate.

Return Value

0 constant (provisional error code)

Comments

This function uses the psuedo random number generator provided in hardware.

All bytes generataed will be non-zero.

RTOS API

On the first call, this library function invokes a software interrupt which modifies the code at the calling site inside your application program.   A direct FAR JMP into the @CHIP-RTOS-x86 implementation for this function is installed so that on return and on any subsequent calls to this API this dynamic link reaches the function's implementation directly.

Supported since or modified in @CHIP-RTOS version

    SC12SC13SC11SC1x3SC2x
    n/an/an/aV1.35V1.35

Supported by @CHIP-RTOS C Library since version

    CLIB
    V2.19

This API List
List of C Libraries
@CHIP-RTOS Main Index


End of document