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 *)randomBytes
Return Value
an NSData object filled with random bytes.
Discussion
Generate secure random numbers with default size of 16 bytes.
Declared In
AGRandomGenerator.h
randomBytes:
Generate secure random numbers with length bytes.
+ (NSData *)randomBytes:(size_t)length
Parameters
- 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