Captcha error silence
This commit is contained in:
parent
cc712a0e99
commit
f7a8069859
3 changed files with 10 additions and 8 deletions
|
@ -1,4 +1,4 @@
|
|||
use rand::{Rng, RngCore};
|
||||
use rand::Rng;
|
||||
|
||||
// This will do for now
|
||||
pub fn hex_string(length: usize) -> String {
|
||||
|
@ -9,11 +9,9 @@ pub fn hex_string(length: usize) -> String {
|
|||
}
|
||||
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn test_random_hex_string() {
|
||||
let s = hex_string(16);
|
||||
let s = super::hex_string(16);
|
||||
assert_eq!(s.len(), 16);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue