11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

setRandomSeed<br />

Syntax<br />

setRandomSeed(inFiles, outFile, length, context)<br />

Note: This function is case-sensitive. If you want it to be case-insensitive, you<br />

must compile your programs using the BASIC command with the -i option.<br />

Description<br />

The setRandomSeed() function generates a random seed file from a series of source<br />

files and sets that file as the default seed file for the supplied security context.<br />

The strength of cryptographic functions depends on the true randomness of the keys.<br />

This function generates and sets the random seed file used by many of the UniData<br />

cryptographic functions. By default, UniData uses the .rnd file in your current<br />

account. You can override the default by calling this function.<br />

The random seed file is specified by outFile, which is generated based on source files<br />

specified in inFiles. For Windows platforms, multiple files must be separated by “;”<br />

(a semi-colon). For Unix platforms, multiple files must be separated by “:” (a colon).<br />

The length parameter specifies how many bytes of seed data UniData should<br />

generate.<br />

If you do not specify a source in the inFiles parameter, the outFile parameter must<br />

already exist.<br />

If you do not specify context, the seed file will be used as a global seed file that<br />

applies to all cryptographic functions. However, a seed file setting in a particular<br />

security context will always override the global setting.<br />

1-732 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!