handle random seeds like pyflann

Closes #4