AGRandomGenerator Class Reference
| Inherits from | NSObject |
| Declared in | AGRandomGenerator.h AGRandomGenerator.m |
Class Methods
randomBytes
Generate secure random numbers with default size of 16 bytes.
+ (NSData *)randomBytesReturn Value
an NSData object filled with random bytes.
Discussion
Generate secure random numbers with default size of 16 bytes.
Declared In
AGRandomGenerator.hrandomBytes:
Generate secure random numbers with length bytes.
+ (NSData *)randomBytes:(size_t)lengthParameters
- length
The length of the random bytes to generate.
Return Value
an NSData object filled with random bytes.
Discussion
Generate secure random numbers with length bytes.
Declared In
AGRandomGenerator.h