mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-30 15:32:58 +00:00
Change data pattern to simpler one
Just use the index modulo 256, as this has a greater stride and is simpler to use. Signed-off-by: David Horstmann <david.horstmann@arm.com>
This commit is contained in:
parent
c5cc1c3a92
commit
b4e3f36918
@ -15,10 +15,8 @@
|
||||
* been written, in a way that will detect an error in offset. */
|
||||
static void fill_buffer_pattern(uint8_t *buffer, size_t len)
|
||||
{
|
||||
uint8_t data[] = { 0x12, 0x34, 0x56, 0x78 };
|
||||
|
||||
for (size_t i = 0; i < len; i++) {
|
||||
buffer[i] = data[i % sizeof(data)];
|
||||
buffer[i] = (uint8_t) (i % 256);
|
||||
}
|
||||
}
|
||||
/* END_HEADER */
|
||||
|
Loading…
x
Reference in New Issue
Block a user