From 49a8ff59dc371693dc47050ed1cb034acdb1a53c Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sat, 20 Aug 2016 06:31:20 +0200 Subject: Windows: Fix crash on 32-bit machines when using Streebog on a CPU that supports SSE4.1. --- src/Common/Random.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Common/Random.c') diff --git a/src/Common/Random.c b/src/Common/Random.c index edc6acca..9e2d3b3b 100644 --- a/src/Common/Random.c +++ b/src/Common/Random.c @@ -108,7 +108,7 @@ int Randinit () if (pRandPool == NULL) { - pRandPool = (unsigned char *) TCalloc (RANDOMPOOL_ALLOCSIZE); + pRandPool = (unsigned char *) _aligned_malloc (RANDOMPOOL_ALLOCSIZE, 16); if (pRandPool == NULL) goto error; -- cgit v1.2.3