http://git.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion/emo/thin-provisioning-tools/commit/32019ac388e0443bc61470cbb98659b3bc2e9bc2
( " bad value returned from rng " ) ) ; } } ; b + = len ; } Ok ( ThinDev { thin_id , dev_size : total_len , runs , } ) } fn mk_snap_mapping ( total_len : u64 , run_len : Range < u64 > , same_percent : usize , diff_percent : usize , ) - > Vec < SnapRun > { let mut runs = Vec :: new ( ) ; let mut b = 0 u64 ; while b < total_len { let len = u64 :: min ( total_len - b , thread_rng ( ) . gen_range ( run_len . start , run_len . end ) , ) ; let n = thread_rng ( ) . gen_range ( 0 , 100 ) ; if n < same_percent {...