MCPcopy Create free account
hub / github.com/arkworks-rs/poly-commit / get_num_bytes

Function get_num_bytes

poly-commit/src/linear_codes/utils.rs:130–132  ·  view source on GitHub ↗
(n: usize)

Source from the content-addressed store, hash-verified

128
129#[inline]
130pub(crate) fn get_num_bytes(n: usize) -> usize {
131 ceil_div((usize::BITS - n.leading_zeros()) as usize, 8)
132}
133
134/// Generate `t` (not necessarily distinct) random points in `[0, n)`
135/// using the current state of the `transcript`.

Callers 1

get_indices_from_spongeFunction · 0.85

Calls 1

ceil_divFunction · 0.85

Tested by

no test coverage detected