Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ public void Create(string connectionString)
* always initializing in this way and it probably helps for non azure scenarios also (anytime persisting on a cifs mount for example).
*/

var tempFile = Path.GetTempFileName();
// Create a random file name using cryptographically strong random number generator (RNGCryptoServiceProvider)
var tempFile = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());

var tempConnectionString = new SqliteConnectionStringBuilder { DataSource = tempFile, Pooling = false };

using (var connection = new SqliteConnection(tempConnectionString.ConnectionString))
Expand Down