MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / next_f64

Method next_f64

nodedb-vector/src/codec_index/graph.rs:39–44  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

37
38 #[inline]
39 pub(crate) fn next_f64(&mut self) -> f64 {
40 self.0 ^= self.0 << 13;
41 self.0 ^= self.0 >> 7;
42 self.0 ^= self.0 << 17;
43 (self.0 as f64) / (u64::MAX as f64)
44 }
45}
46
47/// Hierarchical Navigable Small World graph index parameterised on a

Callers 1

random_layerMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected