Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/docknetwork/crypto
/ rev_vec
Function
rev_vec
utils/src/randomized_pairing_check.rs:228–232 ·
view source on GitHub ↗
(v: &[T])
Source
from the content-addressed store, hash-verified
226
use std::time::Instant;
227
228
fn rev_vec<T: Clone>(v: &[T]) -> Vec<T> {
229
let mut x = v.to_vec();
230
x.reverse();
231
x
232
}
233
234
#[test]
235
fn test_pairing_randomize() {
Callers
1
test_pairing_randomize
Function · 0.85
Calls
no outgoing calls
Tested by
1
test_pairing_randomize
Function · 0.68