aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/validation/fixtures/ConvolutionFixture.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/validation/fixtures/ConvolutionFixture.h b/tests/validation/fixtures/ConvolutionFixture.h
index 8877bd145a..04172a629e 100644
--- a/tests/validation/fixtures/ConvolutionFixture.h
+++ b/tests/validation/fixtures/ConvolutionFixture.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 ARM Limited.
+ * Copyright (c) 2017-2020 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -50,10 +50,11 @@ protected:
{
std::mt19937 gen(library->seed());
std::uniform_int_distribution<uint8_t> distribution(0, 255);
+ std::uniform_int_distribution<uint8_t> scale_distribution(1, 255);
const uint8_t constant_border_value = distribution(gen);
- // Generate random scale value between 0 and 255.
- const uint32_t scale = distribution(gen);
+ // Generate random scale value between 1 and 255.
+ const uint32_t scale = scale_distribution(gen);
ARM_COMPUTE_ERROR_ON(3 != width && 5 != width && 7 != width && 9 != width);
ARM_COMPUTE_ERROR_ON(3 != height && 5 != height && 7 != height && 9 != height);