ggstd 0.1.0

Partial implementation of Go standard library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// Copyright 2023 The rust-ggstd authors.
// SPDX-License-Identifier: 0BSD

use ggstd::crypto;

fn main() {
    let mut buf = vec![0; 20];
    crypto::rand::read(&mut buf).unwrap();
    println!("{}", ggstd::encoding::hex::encode_to_string(&buf));
    crypto::rand::read(&mut buf).unwrap();
    println!("{}", ggstd::encoding::hex::encode_to_string(&buf));
}