From a614b51ebfeac3ba78e4b2092e1c6598c02e04c0 Mon Sep 17 00:00:00 2001 From: pedrocarlo Date: Mon, 20 Oct 2025 13:04:35 -0300 Subject: [PATCH] change randomblob generation to use thread_rng --- core/vdbe/execute.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/vdbe/execute.rs b/core/vdbe/execute.rs index 962f1b3bc..f7f4b16cb 100644 --- a/core/vdbe/execute.rs +++ b/core/vdbe/execute.rs @@ -72,7 +72,7 @@ use super::{ CommitState, }; use parking_lot::RwLock; -use rand::{thread_rng, Rng}; +use rand::{thread_rng, Rng, RngCore}; use turso_parser::ast::{self, Name, SortOrder}; use turso_parser::parser::Parser; @@ -8664,7 +8664,7 @@ impl Value { .max(1) as usize; let mut blob: Vec = vec![0; length]; - getrandom::getrandom(&mut blob).expect("Failed to generate random blob"); + rand::thread_rng().fill_bytes(&mut blob); Value::Blob(blob) }