]> andersk Git - openssh.git/blobdiff - dh.c
- (djm) OpenBSD CVS Sync
[openssh.git] / dh.c
diff --git a/dh.c b/dh.c
index 66858104cb9383916fc4a76409ed94042c446261..0908fcf113798fdb61cc570ff80c90c430158e49 100644 (file)
--- a/dh.c
+++ b/dh.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dh.c,v 1.45 2007/09/27 00:15:57 ray Exp $ */
+/* $OpenBSD: dh.c,v 1.46 2008/04/13 00:22:17 djm Exp $ */
 /*
  * Copyright (c) 2000 Niels Provos.  All rights reserved.
  *
@@ -153,7 +153,7 @@ choose_dh(int min, int wantbits, int max)
        }
 
        linenum = 0;
-       which = arc4random() % bestcount;
+       which = arc4random_uniform(bestcount);
        while (fgets(line, sizeof(line), f)) {
                if (!parse_prime(linenum, line, &dhg))
                        continue;
This page took 0.555187 seconds and 4 git commands to generate.