electro-smith / libDaisy

Hardware Library for the Daisy Audio Platform
https://www.electro-smith.com/daisy
MIT License
312 stars 131 forks source link

Fix float range for `Random::GetFloat` #604

Closed CorvusPrudens closed 4 months ago

CorvusPrudens commented 5 months ago

This PR fixes an issue with Random::GetFloat following this discussion on Discord. I can confirm that before the fix, I got a value above the expected range 4/10 times. Afterwards, it was 0/100.

github-actions[bot] commented 5 months ago

Unit Test Results

151 tests   151 :heavy_check_mark:  0s :stopwatch:   16 suites      0 :zzz:     1 files        0 :x:

Results for commit 443f1708.

beserge commented 4 months ago

Tested with a quick example, works great!