Fix issue as reported https://github.com/smol-rs/fastrand/issues/36
This is same as pull request #37 , but have test in test folder.