Fix Issue #5985: sprandbool() fails and does not have unit tests
Merge pull request #5986 from jperla/master

Fix Issue #5985: sprandbool() fails and does not have unit tests