API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

ISHELL_GETRAND()

Brew Release
Brew MP 1.0.2
See Also
IShell GETRAND()
Description
This function leverages the random number generator on the device. It fills an input buffer with an array of random values.
Params
pIShell
[]:
Pointer to the IShell interface object.
pDest
[]:
Destination buffer.
nSize
[]:
Size in bytes of the buffer.
Interface
  • ISHELL
Prototype
  •     void ISHELL_GetRand(IShell * pIShell, byte * pDest, int nSize);
    
Return
  • None
Side Effect
  • None
Comments
This function uses the random number generator on the device to fill an input buffer with a series of random bytes. The sequence is seeded by the current time, so multiple calls may give identical results unless separated by at least several milliseconds. For best results, call it once per invocation of the event handler function.