Compare commits

...

2 Commits

Author SHA1 Message Date
Dmitry Belyaev cb5bd7a628
Merge branch 'master' into postcard_custom
continuous-integration/drone/push Build is passing Details
2023-08-25 14:43:32 +03:00
Dmitry Belyaev 9c5f05b6a9
app_async: fix print random question 2023-08-25 14:41:53 +03:00
1 changed files with 1 additions and 1 deletions

View File

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