Merge pull request #101 from dhy2000/master

fix #100: change return type to float
This commit is contained in:
tinebp 2024-08-07 18:09:44 -07:00 committed by GitHub
commit 932c435a20
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,7 +50,7 @@ public:
static const char* type_str() {
return "float";
}
static int generate() {
static float generate() {
return static_cast<float>(rand()) / RAND_MAX;
}
static bool compare(float a, float b, int index, int errors) {