Closed jmid closed 7 years ago
Can I close?
I've had a look at the operations in random.ml
that we are calling.
It should be possible without too much effort to lift this limitation.
I'll give it a shot now (hoping my missing git foo doesn't get in the way..)
The difficult part is uniformity, good luck!
Ok, I just pushed (to QCheck) an attempt at lifting this restriction. Sorry, I initially confused this issue with the similar issue on QCheck. You are welcome to close this one as it is tracked elsewhere.
The following makes QCheck.int_range fail with
Exception: Invalid_argument "Random.int".
The problem seems to be that the length of the interval is passed to
Random.int
which fails for any argument above0x3FFFFFFF
, thereby placing an implicit requirement on the acceptable interval lengths ofint_range
.