diff options
author | tomsmeding <tom.smeding@gmail.com> | 2016-10-07 20:33:18 +0200 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2016-10-07 20:33:18 +0200 |
commit | 241518f369efce64046be36a15fcb722b00e9477 (patch) | |
tree | 1aaa6e56e027df35503c497b3c1ef5fa6e8e7916 /rng.cpp | |
parent | 8ee3380a6b116778ccd1a895802465884f58a9b9 (diff) |
Working AES encrypt and decrypt!
Diffstat (limited to 'rng.cpp')
-rw-r--r-- | rng.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -69,10 +69,10 @@ uint32_t KeyRng::get_uniform(uint32_t upbound){ } -uint32_t Arc4Rng::get(){ +uint32_t CryptoRng::get(){ return arc4random(); } -uint32_t Arc4Rng::get_uniform(uint32_t upbound){ +uint32_t CryptoRng::get_uniform(uint32_t upbound){ return arc4random_uniform(upbound); } |