Use a Vec for the Monero generators, preventing its massive stack usage

The amount of stack usage did cause issues on m1 computers.
This commit is contained in:
Luke Parker
2023-09-20 04:31:16 -04:00
parent 98ab6acbd5
commit c62d9b448f
2 changed files with 8 additions and 9 deletions

View File

@@ -44,10 +44,10 @@ fn generators(prefix: &'static str, path: &str) {
pub(crate) static GENERATORS_CELL: OnceLock<Generators> = OnceLock::new();
pub fn GENERATORS() -> &'static Generators {{
GENERATORS_CELL.get_or_init(|| Generators {{
G: [
G: vec![
{G_str}
],
H: [
H: vec![
{H_str}
],
}})