summaryrefslogtreecommitdiff
path: root/contrib/pgcrypto/fortuna.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-07-18 17:09:01 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-07-18 17:09:01 +0000
commit2787db9b1d3a041913d0b5e8c888bc9619f6571a (patch)
treebb23569f7c124c28a0509a6f9dcd6ad032b47b35 /contrib/pgcrypto/fortuna.c
parentdd4a190d188865e9626441c314f2ff331a631f58 (diff)
downloadpostgresql-2787db9b1d3a041913d0b5e8c888bc9619f6571a.tar.gz
Small cleanups for pgcrypto. Marko Kreen
Diffstat (limited to 'contrib/pgcrypto/fortuna.c')
-rw-r--r--contrib/pgcrypto/fortuna.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/contrib/pgcrypto/fortuna.c b/contrib/pgcrypto/fortuna.c
index 7aa9270729..b02618430e 100644
--- a/contrib/pgcrypto/fortuna.c
+++ b/contrib/pgcrypto/fortuna.c
@@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $PostgreSQL: pgsql/contrib/pgcrypto/fortuna.c,v 1.2 2005/07/11 15:07:59 tgl Exp $
+ * $PostgreSQL: pgsql/contrib/pgcrypto/fortuna.c,v 1.3 2005/07/18 17:09:01 tgl Exp $
*/
#include "postgres.h"
@@ -174,8 +174,8 @@ static void init_state(FState *st)
}
/*
- * Must not reseed more ofter than RESEED_PER_SEC
- * times per second.
+ * The time between reseed must be at least RESEED_INTERVAL
+ * microseconds.
*/
static int too_often(FState *st)
{
@@ -241,7 +241,6 @@ static void reseed(FState *st)
memset(&key_md, 0, sizeof(key_md));
memset(buf, 0, BLOCK);
- n = k = 0;
}
/*