summaryrefslogtreecommitdiff
path: root/db/nonce.h
diff options
context:
space:
mode:
Diffstat (limited to 'db/nonce.h')
-rw-r--r--db/nonce.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/db/nonce.h b/db/nonce.h
index 593931f..21592ab 100644
--- a/db/nonce.h
+++ b/db/nonce.h
@@ -20,23 +20,23 @@
namespace mongo {
typedef unsigned long long nonce;
-
+
struct Security {
Security();
nonce getNonce();
- /** safe during global var initialization */
- nonce getNonceInitSafe() {
- init();
- return getNonce();
- }
- private:
+ /** safe during global var initialization */
+ nonce getNonceInitSafe() {
+ init();
+ return getNonce();
+ }
+ private:
ifstream *_devrandom;
- static bool _initialized;
- void init(); // can call more than once
+ static bool _initialized;
+ void init(); // can call more than once
};
-
+
extern Security security;
-
+
} // namespace mongo