diff options
author | drh <drh@noemail.net> | 2019-01-18 14:53:15 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2019-01-18 14:53:15 +0000 |
commit | 3cb79202f8c55d2dd7f7f635244d7c841ab70ad4 (patch) | |
tree | 93734810ec0087f81a0890687007ca951bcc8d06 /src/func.c | |
parent | 21908b2166875fcaf92b194c00719d9031da5fa6 (diff) | |
download | sqlite-3cb79202f8c55d2dd7f7f635244d7c841ab70ad4.tar.gz sqlite-3cb79202f8c55d2dd7f7f635244d7c841ab70ad4.zip |
Use the full 64-bit integer value in the argument to randomblob().
FossilOrigin-Name: 05df5f7aeaf2132810452e8871132d1e66650a841991cb2a9ce32f2d03e20bf4
Diffstat (limited to 'src/func.c')
-rw-r--r-- | src/func.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/func.c b/src/func.c index 11598a7ad..8b1d4416a 100644 --- a/src/func.c +++ b/src/func.c @@ -514,11 +514,11 @@ static void randomBlob( int argc, sqlite3_value **argv ){ - int n; + sqlite3_int64 n; unsigned char *p; assert( argc==1 ); UNUSED_PARAMETER(argc); - n = sqlite3_value_int(argv[0]); + n = sqlite3_value_int64(argv[0]); if( n<1 ){ n = 1; } |