replaces RAND_pseudo_bytes with RAND_bytes

Sun, 03 Dec 2017 10:17:15 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 03 Dec 2017 10:17:15 +0100
changeset 337
d7bda914d120
parent 336
6331271116d0
child 338
c7f3fe4abdb2

replaces RAND_pseudo_bytes with RAND_bytes

libidav/utils.c file | annotate | diff | comparison | revisions
--- a/libidav/utils.c	Mon Oct 30 16:29:07 2017 +0100
+++ b/libidav/utils.c	Sun Dec 03 10:17:15 2017 +0100
@@ -555,7 +555,7 @@
             "ABCDEFGHIJKLMNOPQRSTUVWXYZ");
     const unsigned char *table = (const unsigned char*)t.ptr;
     
-    RAND_pseudo_bytes(str, 24);
+    RAND_bytes(str, 24);
     for(int i=0;i<24;i++) {
         int c = str[i] % t.length;
         str[i] = table[c];

mercurial