aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFunctions.h
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-10-13 14:55:04 +0200
committerMax <post@wickenrode.com>2015-10-13 14:56:00 +0200
commit63b23073b99097f03a57eb8f0e11a906cc4313d6 (patch)
tree795fec945a2f6a9cebfc2cfca3a88969086d993b /Source/SPFunctions.h
parent8c7fc9deaa3d005e0bf2afd6db5d5fa9bb63cf62 (diff)
downloadsequelpro-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.h7
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);