Name
hw_StrongRandom -- generate strong random numbers (V7.1)
Synopsis
int ok = hw_StrongRandom(APTR buf, int len, struct hwTagList *tags);
Function
This function can be used to generate cryptography secure pseudo random numbers. hw_StrongRandom() fills the memory buffer passed in buf with len random bytes.

Note that this function is very slow in comparison to a normal random number generator which is why you shouldn't use it in performance-critical situations.

Also note that on AmigaOS 3.x and AROS this function falls back to a normal random number generator which isn't appropriate for cryptography.

Designer compatibility
Unsupported

Inputs
buf
buffer to fill with random bytes
len
number of random bytes to generate
tags
reserved for future use; set it to NULL for now
Results
ok
True for success, False if there was an error

Show TOC