-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4613cab
commit 88b14fe
Showing
8 changed files
with
126 additions
and
152 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
tasteful | ||
existing | ||
charming | ||
ethereal | ||
faithful | ||
imported | ||
parallel | ||
fearless | ||
accurate | ||
material | ||
juvenile | ||
nebulous | ||
powerful | ||
adorable | ||
truthful | ||
freezing | ||
peaceful | ||
precious | ||
absorbed | ||
aromatic | ||
detailed | ||
assorted | ||
exciting | ||
separate | ||
actually | ||
skillful | ||
hallowed | ||
cultured | ||
succinct | ||
possible | ||
medieval | ||
romantic | ||
magnetic | ||
fabulous | ||
metallic | ||
singular | ||
harmonic | ||
bohemian | ||
synaptic | ||
greenish | ||
vitreous | ||
wearable | ||
cetacean | ||
oracular | ||
viridian | ||
aquarian | ||
sidereal | ||
diatonic | ||
granular | ||
platonic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
use rand::distributions::Alphanumeric; | ||
use rand::Rng; | ||
|
||
const ADJECTIVES: &str = include_str!("adjectives"); | ||
const NOUNS: &str = include_str!("nouns"); | ||
|
||
fn get_random_word(list: Vec<&str>) -> String { | ||
let mut rng = rand::thread_rng(); | ||
let idx = rng.gen_range(0..list.len()); | ||
list[idx].to_string() | ||
} | ||
|
||
pub fn get_random_name() -> String { | ||
let salt: String = rand::thread_rng() | ||
.sample_iter(&Alphanumeric) | ||
.filter(|c| c.is_ascii_lowercase() || c.is_ascii_digit()) | ||
.take(6) | ||
.map(char::from) | ||
.collect(); | ||
|
||
let adjective = get_random_word(ADJECTIVES.lines().collect()); | ||
let noun = get_random_word(NOUNS.lines().collect()); | ||
|
||
format!("{adjective}-{noun}-{salt}") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
sympathy | ||
election | ||
politics | ||
patience | ||
analysis | ||
teaching | ||
contract | ||
guidance | ||
internet | ||
homework | ||
audience | ||
birthday | ||
quantity | ||
customer | ||
employee | ||
relation | ||
magazine | ||
emphasis | ||
elevator | ||
ambition | ||
argument | ||
presence | ||
priority | ||
reaction | ||
baseball | ||
language | ||
midnight | ||
delivery | ||
attitude | ||
stranger | ||
decision | ||
republic | ||
property | ||
category | ||
strategy | ||
director | ||
addition | ||
kindness | ||
calmness | ||
gladness | ||
laughter | ||
appetite | ||
elegance | ||
aircraft | ||
infusion | ||
aerobics | ||
dinosaur | ||
catapult | ||
zeppelin | ||
broccoli |