Simplify mbedtls_ct_memcmp_partial test

Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
diff --git a/tests/suites/test_suite_constant_time.function b/tests/suites/test_suite_constant_time.function
index 262f841..087ccdf 100644
--- a/tests/suites/test_suite_constant_time.function
+++ b/tests/suites/test_suite_constant_time.function
@@ -283,10 +283,10 @@
     /* Construct data that matches, except for specified byte (if in range). */
     for (int i = 0; i < size; i++) {
         a[i] = i & 0xff;
-        if (i != diff) {
-            b[i] = a[i];
-        } else {
-            b[i] = (i + 1) & 0xff;
+        b[i] = a[i];
+        if (i == diff) {
+            // modify the specified byte
+            b[i] ^= 1;
         }
     }