use pyrsa's randint implementation