Use new Random module

Use seed and sample from our Random module

Moved seed inside _getPeer