Skip to content

Commit

Permalink
Test cases for rand() and random()
Browse files Browse the repository at this point in the history
Updates #6.
  • Loading branch information
nabla-c0d3 committed Apr 29, 2013
1 parent 09728b9 commit 55d3f65
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions testapp/CryptoTester.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
+ (void)runAllTests;

+ (void) testCommonHmac;
+ (void) testRand;
+ (void) testCommonDigest;
+ (void) testCommonCryptor;
+ (void) testCommonKeyDerivation;
Expand Down
7 changes: 7 additions & 0 deletions testapp/CryptoTester.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ @implementation CryptoTester
+ (void)runAllTests {

[self testCommonHmac];
[self testRand];
[self testCommonDigest];
[self testCommonCryptor];
[self testCommonKeyDerivation];
Expand All @@ -34,6 +35,12 @@ + (void) testCommonHmac {
}


+ (void) testRand {
rand();
random();
}


+ (void) testCommonDigest {
CC_MD5_CTX ctx;
unsigned char dataOut[CC_MD5_DIGEST_LENGTH];
Expand Down

0 comments on commit 55d3f65

Please sign in to comment.