From: Steffan Karger Date: Tue, 29 Apr 2014 18:28:05 +0000 (+0200) Subject: Use cryptographically strong random when generating keys. X-Git-Tag: release-1.0.24~11 X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=8794274a30d535d49636fec825a0afbf30d8010d;hp=8794274a30d535d49636fec825a0afbf30d8010d Use cryptographically strong random when generating keys. From the OpenSSL manual: "Byte sequences generated by RAND_pseudo_bytes() will be unique if they are of sufficient length, but are not necessarily unpredictable." So, replace these call with RAND_bytes() to get cryptographically strong key material. Signed-off-by: Steffan Karger ---