aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/crypto/prng.h
diff options
context:
space:
mode:
authorGravatar Keegan McAllister <mcallister.keegan@gmail.com>2012-03-28 04:53:11 -0400
committerGravatar Keith Winstein <keithw@mit.edu>2012-04-06 23:43:42 -0400
commitc354a69ee6a9c991d07914c0290433ec3bc05607 (patch)
treeb14b44794e66acdaa5b290a7ab7babc476074a51 /src/crypto/prng.h
parentd1c4b0a5d7c8b12e62be5917369278b46fe92e3c (diff)
Test the Mosh crypto layer
Diffstat (limited to 'src/crypto/prng.h')
-rw-r--r--src/crypto/prng.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/crypto/prng.h b/src/crypto/prng.h
index ef435bd..2f0287c 100644
--- a/src/crypto/prng.h
+++ b/src/crypto/prng.h
@@ -78,6 +78,12 @@ class PRNG {
fill( &x, 4 );
return x;
}
+
+ uint64_t uint64() {
+ uint64_t x;
+ fill( &x, 8 );
+ return x;
+ }
};
#endif