diff options
author | Max <post@wickenrode.com> | 2015-10-13 14:55:04 +0200 |
---|---|---|
committer | Max <post@wickenrode.com> | 2015-10-13 14:56:00 +0200 |
commit | 63b23073b99097f03a57eb8f0e11a906cc4313d6 (patch) | |
tree | 795fec945a2f6a9cebfc2cfca3a88969086d993b /Source/SPFunctions.h | |
parent | 8c7fc9deaa3d005e0bf2afd6db5d5fa9bb63cf62 (diff) | |
download | sequelpro-63b23073b99097f03a57eb8f0e11a906cc4313d6.tar.gz sequelpro-63b23073b99097f03a57eb8f0e11a906cc4313d6.tar.bz2 sequelpro-63b23073b99097f03a57eb8f0e11a906cc4313d6.zip |
Use a better RNG for IV when encrypting session files
Diffstat (limited to 'Source/SPFunctions.h')
-rw-r--r-- | Source/SPFunctions.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/SPFunctions.h b/Source/SPFunctions.h index b68964ca..e462b8cb 100644 --- a/Source/SPFunctions.h +++ b/Source/SPFunctions.h @@ -35,3 +35,10 @@ */ void SPMainQSync(void (^block)(void)); +/** + * Copies count bytes into buf provided by caller + * @param buf Base address to copy to + * @param count Number of bytes to copy + * @return 0 on success or -1 if something went wrong, check errno + */ +int SPBetterRandomBytes(uint8_t *buf, size_t count); |