mirror of
https://github.com/Astatin3/unshell.git
synced 2026-06-08 22:38:01 -06:00
Improve protocol implementation.
This commit is contained in:
@@ -17,9 +17,8 @@ proc-macro = true
|
||||
base62 = {path = "../base62"}
|
||||
|
||||
# aes = "0.8.4"
|
||||
block-padding = "0.4.1"
|
||||
# cbc = "0.1.2"
|
||||
getrandom = "0.3.4"
|
||||
block-padding = "0.4.2"
|
||||
getrandom = "0.4.2"
|
||||
hex = "0.4.3"
|
||||
hex-literal = "1.1.0"
|
||||
# regex = "1.12.2"
|
||||
@@ -29,7 +28,7 @@ hex-literal = "1.1.0"
|
||||
static_init = { workspace = true }
|
||||
|
||||
# Specific
|
||||
quote = "1.0.42"
|
||||
syn = {version = "2.0.109", features = ["full"]}
|
||||
proc-macro2 = "1.0.103"
|
||||
rand = "0.9.2"
|
||||
quote = "1.0.45"
|
||||
syn = {version = "2.0.117", features = ["full"]}
|
||||
proc-macro2 = "1.0.106"
|
||||
rand = "0.10.1"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use proc_macro::TokenStream;
|
||||
use quote::quote;
|
||||
use rand::rngs::SmallRng;
|
||||
use rand::{Rng, SeedableRng};
|
||||
use rand::rngs::{SmallRng, StdRng};
|
||||
use rand::{Rng, RngExt, SeedableRng};
|
||||
use syn::{LitFloat, parse_macro_input};
|
||||
|
||||
// const MIN_TAGS: u32 = 1; // Maximum instructions per recursive block
|
||||
@@ -177,7 +177,7 @@ pub fn junk_asm(input: TokenStream) -> TokenStream {
|
||||
// let final_weight = input_weight.unwrap_or(WEIGHT);
|
||||
|
||||
// 2. Setup
|
||||
let mut rng = SmallRng::from_os_rng();
|
||||
let mut rng = SmallRng::from_seed(rand::random());
|
||||
|
||||
let count = {
|
||||
let mut n = 1;
|
||||
|
||||
Reference in New Issue
Block a user