mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
strip out the random-guid code
This commit is contained in:
parent
697c5fbdf3
commit
7ec39e4be6
1 changed files with 1 additions and 9 deletions
|
|
@ -43,7 +43,6 @@ impl From<PasswordSerializationError> for Error {
|
|||
|
||||
pub struct Manager {
|
||||
pddb: pddb::Pddb,
|
||||
trng: trng::Trng,
|
||||
}
|
||||
|
||||
pub trait StorageContent {
|
||||
|
|
@ -78,19 +77,12 @@ impl ContentKind {
|
|||
}
|
||||
|
||||
impl Manager {
|
||||
pub fn new(xns: &xous_names::XousNames) -> Manager {
|
||||
pub fn new(_xns: &xous_names::XousNames) -> Manager {
|
||||
Manager {
|
||||
pddb: pddb::Pddb::new(),
|
||||
trng: trng::Trng::new(xns).unwrap(),
|
||||
}
|
||||
}
|
||||
|
||||
fn gen_guid(&mut self) -> String {
|
||||
let mut guid = [0u8; 16];
|
||||
self.trng.fill_bytes(&mut guid);
|
||||
hex::encode(guid)
|
||||
}
|
||||
|
||||
fn pddb_exists(&self, dict: &str, key_name: &str, basis: Option<String>) -> bool {
|
||||
match self.pddb.get(
|
||||
dict,
|
||||
|
|
|
|||
Loading…
Reference in a new issue