diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-07-18 17:09:01 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-07-18 17:09:01 +0000 |
| commit | 2787db9b1d3a041913d0b5e8c888bc9619f6571a (patch) | |
| tree | bb23569f7c124c28a0509a6f9dcd6ad032b47b35 /contrib/pgcrypto/fortuna.c | |
| parent | dd4a190d188865e9626441c314f2ff331a631f58 (diff) | |
| download | postgresql-2787db9b1d3a041913d0b5e8c888bc9619f6571a.tar.gz | |
Small cleanups for pgcrypto. Marko Kreen
Diffstat (limited to 'contrib/pgcrypto/fortuna.c')
| -rw-r--r-- | contrib/pgcrypto/fortuna.c | 7 |
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; } /* |
