Be a little more generous
authoraland <aland>
Fri, 11 Apr 2008 09:55:02 +0000 (09:55 +0000)
committeraland <aland>
Fri, 11 Apr 2008 09:55:02 +0000 (09:55 +0000)
src/lib/radius.c

index 62fccd7..a6f9da7 100644 (file)
@@ -2926,7 +2926,7 @@ uint32_t fr_rand(void)
        }
 
        num = fr_rand_pool.randrsl[fr_rand_pool.randcnt++];
-       if (fr_rand_pool.randcnt == 256) {
+       if (fr_rand_pool.randcnt >= 256) {
                fr_rand_pool.randcnt = 0;
                fr_isaac(&fr_rand_pool);
        }