gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r1130 - GNUnet/src/applications/identity


From: grothoff
Subject: [GNUnet-SVN] r1130 - GNUnet/src/applications/identity
Date: Wed, 29 Jun 2005 01:56:39 -0700 (PDT)

Author: grothoff
Date: 2005-06-29 01:56:33 -0700 (Wed, 29 Jun 2005)
New Revision: 1130

Modified:
   GNUnet/src/applications/identity/identity.c
Log:
fixing randomi bug

Modified: GNUnet/src/applications/identity/identity.c
===================================================================
--- GNUnet/src/applications/identity/identity.c 2005-06-28 22:36:09 UTC (rev 
1129)
+++ GNUnet/src/applications/identity/identity.c 2005-06-29 08:56:33 UTC (rev 
1130)
@@ -655,8 +655,7 @@
        hosts_[i].delta
          = hosts_[i].delta * 2 + randomi((desperation+1)*cronSECONDS);
        if (hosts_[i].delta > 4 * cronHOURS)
-         hosts_[i].delta = 4 *  randomi(cronHOURS * 
-                                        randomi(desperation+1));
+         hosts_[i].delta = 4 *  randomi(cronHOURS * (desperation+1));
       }
       cronTime(&hosts_[i].until);
       hosts_[i].until += hosts_[i].delta;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]