Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/hashintel/hash
/ rng
Method
rng
tests/graph/test-data/rust/src/seeding/context.rs:380–385 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
378
379
#[must_use]
380
pub fn rng(self) -> impl Rng {
381
KeyedRng {
382
seed: xxh3_64(self.encode().as_bytes()),
383
ctr: 0,
384
}
385
}
386
}
387
388
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
Callers
7
rng_is_deterministic_for_same_inputs
Function · 0.80
rng_differs_when_scope_or_ids_change
Function · 0.80
generate
Method · 0.80
generate
Method · 0.80
generate
Method · 0.80
generate
Method · 0.80
generate
Method · 0.80
Calls
2
as_bytes
Method · 0.45
encode
Method · 0.45
Tested by
2
rng_is_deterministic_for_same_inputs
Function · 0.64
rng_differs_when_scope_or_ids_change
Function · 0.64