8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96055de commit b66b142Copy full SHA for b66b142
src/crypto_cc.c
@@ -6,7 +6,7 @@
6
7
/* generate a defined number of random bytes */
8
static int sqlcipher_cc_random (void *ctx, void *buffer, int length) {
9
- return (SecRandomCopyBytes(kSecRandomDefault, length, (uint8_t *)buffer) == 0);
+ return (SecRandomCopyBytes(kSecRandomDefault, length, (uint8_t *)buffer) == 0) ? SQLITE_OK : SQLITE_ERROR;
10
}
11
12
static const char* sqlcipher_cc_get_provider_name(void *ctx) {
0 commit comments