Use file in os.TempDir() for tests.
Use file in os.TempDir() for tests.

Sometimes it's best to not create files in the directories where code lives...
for example, that directory might be read-only, or folks might be using
source-control or build systems that disallow that behavior.  To fix this, we
create a file in the temp directory and use it instead.

We don't use ioutil.TempFile(), since that actually creates the file, and we'd
like the tests to run as if the file had never existed.  We use 16 bytes from
crypto/rand to avoid people doing bad things with symlinks in the temp
directory.

xeodou/go-sqlcipher,gmarik/go-sqlite3,larsmans/go-sqlite3,helight/helight_code,mattn/go-sqlite3,shaxbee/go-sqlite3,larsmans/go-sqlite3,hujunlong/go-sqlite3,wuranbo/go-sqlite3,helight/helight_code,denji/go-sqlite3,hujunlong/go-sqlite3,danderson/go-sqlite3,JonathanLogan/go-sqlcipher,accense/go-sqlite3,mdevan/go-sqlite3,helight/helight_code,joewalnes/go-sqlite3,mdevan/go-sqlite3,danderson/go-sqlite3,ArtemTeleshev/go-sqlite3,kiwih/go-sqlite3,jabgibson/go-sqlite3,gmarik/go-sqlite3,Schumix/go-sqlite3,vonwenm/go-sqlite3,mdevan/go-sqlite3,marccampbell/go-sqlite3,shaxbee/go-sqlite3,lyonel/go-sqlite3,accense/go-sqlite3,helight/helight_code,marccampbell/go-sqlite3,xeodou/go-sqlcipher,andviro/go-sqlite3,henrylee2cn/go-sqlite3,lyonel/go-sqlite3,kiwih/go-sqlite3,wuranbo/go-sqlite3,Schumix/go-sqlite3,mattn/go-sqlite3,accense/go-sqlite3,andviro/go-sqlite3,andviro/go-sqlite3,xeodou/go-sqlcipher,henrylee2cn/go-sqlite3,helight/helight_code,henrylee2cn/go-sqlite3,helight/helight_code,denji/go-sqlite3,vonwenm/go-sqlite3,larsmans/go-sqlite3,gmarik/go-sqlite3,lyonel/go-sqlite3,helight/helight_code,helight/helight_code,jabgibson/go-sqlite3,ArtemTeleshev/go-sqlite3,helight/helight_code,hujunlong/go-sqlite3,ArtemTeleshev/go-sqlite3,denji/go-sqlite3,JonathanLogan/go-sqlcipher,shaxbee/go-sqlite3,danderson/go-sqlite3,joewalnes/go-sqlite3,Schumix/go-sqlite3,marccampbell/go-sqlite3,mattn/go-sqlite3,wuranbo/go-sqlite3,kiwih/go-sqlite3,JonathanLogan/go-sqlcipher,jabgibson/go-sqlite3,vonwenm/go-sqlite3,joewalnes/go-sqlite3