Fix Cygwin setstate definition
setstate is supposed to take a char *, not a const char *. * random.cc (setstate): Unconstify parameter to align to stdlib.h. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
660f84b15b
commit
087aca6163
@ -413,7 +413,7 @@ initstate(unsigned seed, /* seed for R.N.G. */
|
|||||||
* complain about mis-alignment, but you should disregard these messages.
|
* complain about mis-alignment, but you should disregard these messages.
|
||||||
*/
|
*/
|
||||||
char *
|
char *
|
||||||
setstate(const char *arg_state /* pointer to state array */)
|
setstate(char *arg_state /* pointer to state array */)
|
||||||
{
|
{
|
||||||
uint32_t *new_state = (uint32_t *)arg_state;
|
uint32_t *new_state = (uint32_t *)arg_state;
|
||||||
uint32_t type = new_state[0] % MAX_TYPES;
|
uint32_t type = new_state[0] % MAX_TYPES;
|
||||||
|
Loading…
Reference in New Issue
Block a user