From 241518f369efce64046be36a15fcb722b00e9477 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Fri, 7 Oct 2016 20:33:18 +0200 Subject: Working AES encrypt and decrypt! --- rng.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rng.cpp') diff --git a/rng.cpp b/rng.cpp index c9e7f03..aba1c02 100644 --- a/rng.cpp +++ b/rng.cpp @@ -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); } -- cgit v1.2.3-70-g09d2