X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/80e2389990082500d76eb566d4946be3e786c3ef..d8f41ccd20de16f8ebe2ccc84d47bf1cb2b26bbb:/Security/libsecurity_cryptkit/lib/NSRandomNumberGenerator.h diff --git a/Security/libsecurity_cryptkit/lib/NSRandomNumberGenerator.h b/Security/libsecurity_cryptkit/lib/NSRandomNumberGenerator.h new file mode 100644 index 00000000..1de469cd --- /dev/null +++ b/Security/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