Skip to content

Commit 9dadf3a

Browse files
committed
chore: removed vulnerable rand crate usage
1 parent 7cefa33 commit 9dadf3a

3 files changed

Lines changed: 0 additions & 83 deletions

File tree

Cargo.lock

Lines changed: 0 additions & 71 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiler/llvm_ir_bridge/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ inkwell = { git = "https://github.com/TheDan64/inkwell", features = [
99
] }
1010
astoir_mir = { path = "../astoir_mir" }
1111
compiler_typing = { path = "../compiler_typing" }
12-
rand = "0.8"

compiler/llvm_ir_bridge/src/utils.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ use inkwell::{
66
types::{BasicMetadataTypeEnum, BasicTypeEnum, IntType, PointerType},
77
values::{BasicValueEnum, FunctionValue},
88
};
9-
use rand::{Rng, distributions::Alphanumeric};
109

1110
pub type LLVMBlock = LLVMSiblingObject<BasicBlock<'static>>;
1211
pub type LLVMBasicValue = LLVMSiblingObject<BasicValueEnum<'static>>;
@@ -84,13 +83,3 @@ impl<T: Clone> Deref for LLVMSiblingObject<T> {
8483
return &self.inner;
8584
}
8685
}
87-
88-
pub fn get_block_name() -> String {
89-
let s = rand::thread_rng()
90-
.sample_iter(&Alphanumeric)
91-
.take(24)
92-
.map(char::from)
93-
.collect();
94-
95-
return s;
96-
}

0 commit comments

Comments
 (0)