Improve protocol implementation.

This commit is contained in:
Michael Mikovsky
2026-04-24 14:10:03 -06:00
parent 49901b6370
commit 3f1116c26a
19 changed files with 1265 additions and 683 deletions
+6 -7
View File
@@ -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"
+3 -3
View File
@@ -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;