From ba758250da4d486613b6b09e07819e26e468e0c0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Kochma=C5=84ski?= Date: Sun, 20 Sep 2015 12:00:28 +0200 Subject: [PATCH] init_random: fix typo affecting random state seed MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Implementation of random seed buffer filler for windows were shadowing using /dev/urandom source. I'm convinced that author's intention was to put there "else". Signed-off-by: Daniel Kochmański --- src/c/num_rand.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c/num_rand.d b/src/c/num_rand.d index 33c9579..374b984 100644 --- a/src/c/num_rand.d +++ b/src/c/num_rand.d @@ -62,7 +62,7 @@ init_random_state() mt[j] = buffer[j]; } close(fh); - } + } else #endif { /* cant get urandom, use crappy source */ -- 2.9.0