Skip to content

Commit

Permalink
Merge pull request #18505 from badone/wip-unittest-crypto-getentropy-…
Browse files Browse the repository at this point in the history
…limit

unittest_crypto: Don't exceed limit for getentropy

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
  • Loading branch information
badone committed Oct 25, 2017
2 parents df7a694 + 2e3af69 commit 7e6e87e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/crypto.cc
Expand Up @@ -121,7 +121,7 @@ TEST(AES, Loop) {
bufferptr secret(16);
random.get_bytes(secret.c_str(), secret.length());

bufferptr orig_plaintext(1024);
bufferptr orig_plaintext(256);
random.get_bytes(orig_plaintext.c_str(), orig_plaintext.length());

bufferlist plaintext;
Expand Down

0 comments on commit 7e6e87e

Please sign in to comment.