Skip to content

Commit

Permalink
update example to reflect RngCore requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
boneyard93501 committed Jul 17, 2018
1 parent cc1a5fd commit 096f458
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/symmetriccipher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use crypto::{ symmetriccipher, buffer, aes, blockmodes };
use crypto::buffer::{ ReadBuffer, WriteBuffer, BufferResult };

use rand::{ Rng, OsRng };
use rand::RngCore;

// Encrypt a buffer with the given key and iv using
// AES-256/CBC/Pkcs encryption.
Expand Down

0 comments on commit 096f458

Please sign in to comment.