MCPcopy 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

generateMethod · 0.80
generateMethod · 0.80
generateMethod · 0.80
generateMethod · 0.80
generateMethod · 0.80

Calls 2

as_bytesMethod · 0.45
encodeMethod · 0.45