diff options
author | Nils Durner <durner@gnunet.org> | 2009-09-24 20:17:22 +0000 |
---|---|---|
committer | Nils Durner <durner@gnunet.org> | 2009-09-24 20:17:22 +0000 |
commit | c2d3d24cd9b4f552d7ca8ad6283f9819c1cfefc7 (patch) | |
tree | 96362aa7c33e6fa174b0aaefa06400da744a3e18 /src/util/crypto_random.c | |
parent | 76c024311489ede1bca79cf647e568dde70d8a48 (diff) | |
download | gnunet-c2d3d24cd9b4f552d7ca8ad6283f9819c1cfefc7.tar.gz gnunet-c2d3d24cd9b4f552d7ca8ad6283f9819c1cfefc7.zip |
srandom II
Diffstat (limited to 'src/util/crypto_random.c')
-rw-r--r-- | src/util/crypto_random.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util/crypto_random.c b/src/util/crypto_random.c index 0ad1364cb..b56523a46 100644 --- a/src/util/crypto_random.c +++ b/src/util/crypto_random.c | |||
@@ -132,5 +132,13 @@ GNUNET_CRYPTO_random_disable_entropy_gathering () | |||
132 | gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0); | 132 | gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0); |
133 | } | 133 | } |
134 | 134 | ||
135 | /** | ||
136 | * Initializer | ||
137 | */ | ||
138 | void __attribute__ ((constructor)) | ||
139 | GNUNET_util_random_init() | ||
140 | { | ||
141 | SRANDOM (time (NULL)); | ||
142 | } | ||
135 | 143 | ||
136 | /* end of crypto_random.c */ | 144 | /* end of crypto_random.c */ |