From 8a4cf0dd12a43c5f0da52ec9325a1d9e2420260a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 20 Mar 2014 22:35:51 +0100 Subject: [PATCH] don't see anything since /dev/random doesn't really need more seeding redhat have Linux SE rules that slows down openssh when heimdal tries to write, so lets not write. https://bugzilla.redhat.com/show_bug.cgi?id=1076979 --- lib/hcrypto/rand-unix.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/lib/hcrypto/rand-unix.c b/lib/hcrypto/rand-unix.c index e0299589c..72715077c 100644 --- a/lib/hcrypto/rand-unix.c +++ b/lib/hcrypto/rand-unix.c @@ -73,19 +73,6 @@ _hc_unix_device_fd(int flags, const char **fn) static void unix_seed(const void *indata, int size) { - int fd; - - if (size <= 0) - return; - - fd = _hc_unix_device_fd(O_WRONLY, NULL); - if (fd < 0) - return; - - if (write(fd, indata, size) != size) - ; /* don't care */ - close(fd); - } -- 2.11.4.GIT