From 155bf30da92830a5816710f94c94084c9a1fd284 Mon Sep 17 00:00:00 2001 From: Davis King Date: Mon, 4 Dec 2017 12:29:51 -0500 Subject: [PATCH] Fixed a very small bias in rand::get_random_double() --- dlib/rand/rand_kernel_1.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlib/rand/rand_kernel_1.h b/dlib/rand/rand_kernel_1.h index bf12d10cd..a1847be24 100644 --- a/dlib/rand/rand_kernel_1.h +++ b/dlib/rand/rand_kernel_1.h @@ -288,7 +288,7 @@ namespace dlib max_val = 0xFFFFFF; max_val *= 0x1000000; max_val += 0xFFFFFF; - max_val += 0.01; + max_val += 0.05; has_gaussian = false;