Lines Matching refs:state
63 static uint32_t state[STATE_SIZE_IN_WORDS]; variable
105 (uint8_t *)state, in Random_seedAutomatic()
106 sizeof(state)); in Random_seedAutomatic()
121 state[0] = HWREG(SYSCTL_UNIQUEID0); in Random_seedAutomatic()
122 state[1] = HWREG(SYSCTL_UNIQUEID1); in Random_seedAutomatic()
123 state[2] = HWREG(SYSCTL_UNIQUEID2); in Random_seedAutomatic()
124 state[3] = HWREG(SYSCTL_UNIQUEID3); in Random_seedAutomatic()
125 state[4] = 0x00000001; in Random_seedAutomatic()
131 state[0] = 0x00000001; in Random_seedAutomatic()
132 state[1] = 0x00000002; in Random_seedAutomatic()
133 state[2] = 0x00000003; in Random_seedAutomatic()
134 state[3] = 0x00000004; in Random_seedAutomatic()
135 state[4] = 0x00000005; in Random_seedAutomatic()
149 memcpy(state, seed, sizeof(state)); in Random_seedManual()
166 v = state[3]; in Random_getNumber()
171 state[3] = state[2]; in Random_getNumber()
172 state[2] = state[1]; in Random_getNumber()
173 state[1] = state[0]; in Random_getNumber()
174 s = state[0]; in Random_getNumber()
179 state[0] = v; in Random_getNumber()
181 state[4] += 362437; in Random_getNumber()
183 result = v + state[4]; in Random_getNumber()