Merge branch 'master' into postcard
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Dmitry Belyaev 2023-08-25 14:43:11 +03:00
commit f3197603f6
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3

View File

@ -154,7 +154,7 @@ async fn read_from_db(id: u32) -> Option<Question> {
let len = reader.len(); let len = reader.len();
let index = if len == 0 { let index = if id == 0 {
let mut rng = thread_rng(); let mut rng = thread_rng();
let questions = Uniform::new(0, len); let questions = Uniform::new(0, len);
rng.sample(questions) rng.sample(questions)