From 63d4bf03d407965a5829b42bc43ed62102802b47 Mon Sep 17 00:00:00 2001 From: JohnnyCena123 Date: Mon, 13 Oct 2025 21:05:26 +0300 Subject: [PATCH] fix repeating 0 --- src/rcore.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/rcore.c b/src/rcore.c index 4286f468d..718b8ca83 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -3109,13 +3109,13 @@ unsigned int *ComputeSHA256(unsigned char *data, int dataSize) static unsigned int hash[8]; hash[0] = 0x6A09e667; - hash[0] = 0xbb67ae85; - hash[0] = 0x3c6ef372; - hash[0] = 0xa54ff53a; - hash[0] = 0x510e527f; - hash[0] = 0x9b05688c; - hash[0] = 0x1f83d9ab; - hash[0] = 0x5be0cd19; + hash[1] = 0xbb67ae85; + hash[2] = 0x3c6ef372; + hash[3] = 0xa54ff53a; + hash[4] = 0x510e527f; + hash[5] = 0x9b05688c; + hash[6] = 0x1f83d9ab; + hash[7] = 0x5be0cd19; unsigned long long const bitLen = dataSize*8; unsigned long long paddedSize = dataSize + sizeof(dataSize);