1 /* Copyright (c) 1998,2011,2014 Apple Inc. All Rights Reserved.
3 * NOTICE: USE OF THE MATERIALS ACCOMPANYING THIS NOTICE IS SUBJECT
4 * TO THE TERMS OF THE SIGNED "FAST ELLIPTIC ENCRYPTION (FEE) REFERENCE
5 * SOURCE CODE EVALUATION AGREEMENT" BETWEEN APPLE, INC. AND THE
6 * ORIGINAL LICENSEE THAT OBTAINED THESE MATERIALS FROM APPLE,
7 * INC. ANY USE OF THESE MATERIALS NOT PERMITTED BY SUCH AGREEMENT WILL
8 * EXPOSE YOU TO LIABILITY.
9 ***************************************************************************
11 * NSRandomNumberGenerator.h
17 * ?? 96 Blaine Garst at NeXT
21 #import <Foundation/NSData.h>
23 @interface NSRandomNumberGenerator
: NSObject
28 - initWithSeed
:(unsigned)seed
; // designated initializer
29 - init
; // we'll come up with the best seed
32 - (unsigned)nextNumber
;
33 - (unsigned)nextNumberInRange
:(NSRange
)range
;
34 - (NSData
*)randomDataWithLength
:(unsigned)l
;