Location: Symbol Reference > Classes > TJwCryptProvider Class > TJwCryptProvider Methods > TJwCryptProvider.GetRandomData Method
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwCryptProvider.GetRandomData Method
Pascal
procedure GetRandomData(Random: Pointer; const Length: Cardinal);
Parameters 
Description 
Random: Pointer 
Pointer to the buffer to be filled with random data. The current contents of the buffer are used as a seed. Nevertheless, it is not necessary to supply a good seed in the buffer.  
const Length: Cardinal 
Size of the buffer to be filled 

GetRandomData fills a buffer with random data. The data is usually far better than the one you retrieve by calling System.Random, although the exact implementation depends on the CSP.

Exceptions 
Description 
will be raised if the underlying Windows call fails. 
Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!