Fix Firefox crash in sqlite3_randomness

https://www.illumos.org/issues/4254
Merge pull request #298 from pyhalov/sqlite3

Fix Firefox crash in sqlite3_randomness