X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fynorsim.c;h=6936a9c874e2c9bffb4d995e8ab4d8e870c8fda6;hp=3281a2f374c3b78f05ec82572d974d4f2956e246;hb=85530132e169794d9e7e9c1de1396a12bc650383;hpb=3b6c99b4d21c4ff4bbc9aed65a71868ab6a0dc46 diff --git a/direct/ynorsim.c b/direct/ynorsim.c index 3281a2f..6936a9c 100644 --- a/direct/ynorsim.c +++ b/direct/ynorsim.c @@ -39,6 +39,7 @@ static __u32 word[YNORSIM_DEV_SIZE_U32]; +extern int random_seed; static void NorError(void) { @@ -89,7 +90,7 @@ static void ynorsim_Ready(void) { if(initialised) return; - srand(time(NULL)); + srand(random_seed); remaining_ops = 1000000000; remaining_ops = (rand() % 10000) * 3000 * YNORSIM_BIT_CHANGES; ynorsim_RestoreImage();