// Copyright 2020 Mateusz Janda.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//! Peer ID utilities.
use cratePEER_ID_SIZE;
use AsPrimitive;
use Alphanumeric;
use Rng;
/// Generate random peer ID.
///
/// # Example
/// ```
/// use rdest::peer_id;
///
/// let id = peer_id::generate();
/// println!("{:?}", id);
/// ```