Crates.io | key-to-animal |
lib.rs | key-to-animal |
version | 0.0.1 |
source | src |
created_at | 2024-10-30 12:52:33.308174 |
updated_at | 2024-10-30 12:52:33.308174 |
description | Derive a silly animal name from a 32 byte hash or key |
homepage | https://gitlab.com/pegpeg/key-to-animal |
repository | https://gitlab.com/pegpeg/key-to-animal |
max_upload_size | |
id | 1428475 |
size | 326,700 |
Derive a silly animal name from a 32 byte hash or key
let result = key_to_animal::key_to_name(&[
132, 122, 1, 1, 1, 1, 1, 1, 32, 2, 2, 2, 3, 4, 5, 6, 7, 8, 2, 3, 4, 5, 3, 4, 4, 5, 6,
4, 5, 6, 3, 2,
]);
assert_eq!(result, "greyishLemur".to_string());
The idea is to have a recognisable/memorable name made up of an adjective and the name of an animal.