Skip to main content

parse_seed

Function parse_seed 

Source
pub fn parse_seed(text: &str) -> Option<i64>
Expand description

Parses a seed as TLC’s -seed does (dive check --seed). Parses a seed as TLC’s -seed does (Long.parseLong): an optional + or - and decimal digits, within the range of a 64-bit signed integer.

Java also accepts non-ASCII decimal digits (Character.digit); dive refuses them, returning None like any other malformed seed.