mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avutil/random_seed: Use uint64 instead of uint8 for struct to avoid potential alignment issues
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
9f76ad2a46
commit
54931fd0fb
@ -64,7 +64,7 @@ static int read_random(uint32_t *dst, const char *file)
|
||||
|
||||
static uint32_t get_generic_seed(void)
|
||||
{
|
||||
uint8_t tmp[120];
|
||||
uint64_t tmp[120/8];
|
||||
struct AVSHA *sha = (void*)tmp;
|
||||
clock_t last_t = 0;
|
||||
static uint64_t i = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user