Skip to content

Commit

Permalink
Fix shuffled_prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SoraSuegami committed Nov 5, 2024
1 parent 605f1ae commit 0327db9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dns_client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ pub async fn get_dkim_public_key(

let seed = ic_cdk::api::time() as usize % prefixes.len();
let mut shuffled_prefixes = vec![];
for i in 0..3 {
for i in 0..prefixes.len() {
shuffled_prefixes.push(prefixes[(seed + i) % prefixes.len()]);
}

Expand Down

0 comments on commit 0327db9

Please sign in to comment.