extmod/modurandom: Make yasmarang() function static.

This commit is contained in:
Paul Sokolovsky 2016-01-17 13:13:57 +02:00
parent a58a91eb04
commit ea495d6aa6

View File

@ -40,7 +40,7 @@
STATIC uint32_t yasmarang_pad = 0xeda4baba, yasmarang_n = 69, yasmarang_d = 233; STATIC uint32_t yasmarang_pad = 0xeda4baba, yasmarang_n = 69, yasmarang_d = 233;
STATIC uint8_t yasmarang_dat = 0; STATIC uint8_t yasmarang_dat = 0;
uint32_t yasmarang(void) STATIC uint32_t yasmarang(void)
{ {
yasmarang_pad += yasmarang_dat + yasmarang_d * yasmarang_n; yasmarang_pad += yasmarang_dat + yasmarang_d * yasmarang_n;
yasmarang_pad = (yasmarang_pad<<3) + (yasmarang_pad>>29); yasmarang_pad = (yasmarang_pad<<3) + (yasmarang_pad>>29);