Skip to main content

read_seed

Function read_seed 

Source
fn read_seed(
    obj: &Map<String, Value>,
    issues: &mut Vec<FieldIssue>,
) -> Option<u32>
Expand description

Read the seed field.

llama.cpp’s own spelling for “pick one at random” is -1, and its /slots reports a random seed as 4294967295 (u32::MAX). Both are normalised to None, which is how this type spells the same thing — omission already means random, so carrying a sentinel would give the same state two representations and make seed.is_some() stop meaning “reproducible”.