Instance Property

seed

The seed data that determines the random source’s behavior.

Declaration

@property(nonatomic, copy) NSData *seed;

Discussion

Any two random sources initialized with the same seed data will generate the same sequence of random numbers. To replicate the behavior of an existing GKARC4RandomSource instance, read this property and then create a new instance by passing the resulting data to the initWithSeed: initializer.

For a source of high-entropy seed data, see the SecRandomCopyBytes function.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software