File libgcrypt-fips_no_static_fd_random.patch of Package libgcrypt.5432

Index: libgcrypt-1.6.1/random/rndlinux.c
===================================================================
--- libgcrypt-1.6.1.orig/random/rndlinux.c	2017-07-14 15:11:46.485592744 +0200
+++ libgcrypt-1.6.1/random/rndlinux.c	2017-07-14 15:12:34.210369739 +0200
@@ -113,9 +113,9 @@ _gcry_rndlinux_gather_random (void (*add
                               enum random_origins origin,
                               size_t length, int level )
 {
-  static int fd_urandom = -1;
-  static int fd_random = -1;
-  static int fd_configured = -1;
+  int fd_urandom = -1;
+  int fd_random = -1;
+  int fd_configured = -1;
   static unsigned char ever_opened;
   int fd;
   int n;
openSUSE Build Service is sponsored by