X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/5dd5f9ec28f304ca377c42fd7f711d6cf12b90e1..5c19dc3ae3bd8e40a9c028b0deddd50ff337692c:/OSX/libsecurity_cryptkit/lib/NSRandomNumberGenerator.h diff --git a/OSX/libsecurity_cryptkit/lib/NSRandomNumberGenerator.h b/OSX/libsecurity_cryptkit/lib/NSRandomNumberGenerator.h new file mode 100644 index 00000000..1de469cd --- /dev/null +++ b/OSX/libsecurity_cryptkit/lib/NSRandomNumberGenerator.h @@ -0,0 +1,36 @@ +/* Copyright (c) 1998,2011,2014 Apple Inc. All Rights Reserved. + * + * NOTICE: USE OF THE MATERIALS ACCOMPANYING THIS NOTICE IS SUBJECT + * TO THE TERMS OF THE SIGNED "FAST ELLIPTIC ENCRYPTION (FEE) REFERENCE + * SOURCE CODE EVALUATION AGREEMENT" BETWEEN APPLE, INC. AND THE + * ORIGINAL LICENSEE THAT OBTAINED THESE MATERIALS FROM APPLE, + * INC. ANY USE OF THESE MATERIALS NOT PERMITTED BY SUCH AGREEMENT WILL + * EXPOSE YOU TO LIABILITY. + *************************************************************************** + * + * NSRandomNumberGenerator.h + * + * Revision History + * ---------------- + * 28 Mar 97 at Apple + * Simplified. + * ?? 96 Blaine Garst at NeXT + * Created. + */ + +#import + +@interface NSRandomNumberGenerator : NSObject +{ + void *_priv; +} + +- initWithSeed:(unsigned)seed; // designated initializer +- init; // we'll come up with the best seed + // we can + +- (unsigned)nextNumber; +- (unsigned)nextNumberInRange:(NSRange)range; +- (NSData *)randomDataWithLength:(unsigned)l; + +@end