# tibemsSSLParams_SetRandData

Function

## Purpose

Settings for generating random data.

## C Declaration

    tibems_status tibemsSSLParams_SetRandData(
        tibemsSSLParams SSLParams,
        const char* rand_data,
        tibems_int size );

    tibems_status tibemsSSLParams_SetRandFile(
        tibemsSSLParams SSLParams,
        const char* rand_file );

    tibems_status tibemsSSLParams_SetRandEGD(
        tibemsSSLParams SSLParams,
        const char* rand_egd_path );

## IBM Systems

These functions are not supported on z/OS and IBM i systems. For more information, see SSL Implementation on IBM EBCDIC Systems.

## Parameters

Parameter | Description
--- | ---
`SSLParams` | Set the value in this SSL parameter object.
`rand_data` | Supply random data as a character string.
`size` | Supply the length (in bytes) of the random data string.
`rand_file` | Read random data from this file.
`rand_egd_path` | Supply the file pathname of an entropy gathering daemon, which generates random data.

## Remarks

These three functions represent three ways to inject crucial random data into SSL computations. Every program must select one of these ways. If an entropy gathering daemon is available on the host computer, we recommend using it.

Copyright © Cloud Software Group, Inc. All rights reserved.