sbyx / hnetd

HomeNet-CP implementation (WIP)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New PA code + pseudorandom = not win

fingon opened this issue · comments

(IRC log)

10.32 pseudorandom does not seem to work that well with AA etc
10.33 given it has 128 candidates, and it is trying to pick random address from /64 that hits it..
10.33 odds of a hit are 1/2^57
10.33 oryon: any idea how to fix that? ;)
10.34 I suspect same problem might crop up with also normal prefixes, if ISP gives e.g. /48 and you try to allocate a /64
10.35 odds of a pseudorandom hit are 1/2^(64-48-7)
10.35 hrm, that's just 1 in 512, not so bad

Hamming distance stuff fixes this one.