MCPcopy Create free account
hub / github.com/AI45Lab/Code / i32_small

Method i32_small

core/tests/test_persisted_schema_roundtrip.rs:89–91  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

87 self.next() % 1_000_000_000
88 }
89 fn i32_small(&mut self) -> i32 {
90 (self.next() % 512) as i32 - 256
91 }
92 /// Finite f64 only — serde_json renders NaN/Inf as `null`, which would
93 /// not round-trip. We deliberately stay in the finite range so the
94 /// stability property holds.

Callers 3

json_valueMethod · 0.80
gen_trace_eventFunction · 0.80
gen_agent_eventFunction · 0.80

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected