1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-10-21 11:13:54 +03:00

Use the full 64-bit integer value in the argument to randomblob().

FossilOrigin-Name: 05df5f7aeaf2132810452e8871132d1e66650a841991cb2a9ce32f2d03e20bf4
This commit is contained in:
drh
2019-01-18 14:53:15 +00:00
parent 21908b2166
commit 3cb79202f8
3 changed files with 9 additions and 9 deletions

View File

@@ -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;
}