diff --git a/porting/liteos_a/kernel/src/prng/rand.c b/porting/liteos_a/kernel/src/prng/rand.c index 2a429645c546eb1b492059e48fe2e4cbe5345b09..65ad238435cc1f73ac06411b8b499921b68fd0c8 100644 --- a/porting/liteos_a/kernel/src/prng/rand.c +++ b/porting/liteos_a/kernel/src/prng/rand.c @@ -32,11 +32,9 @@ #include #include -static uint64_t seed; - void srand(unsigned s) { - return srandom(seed); + return srandom(s); } int rand(void)