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:
Corinna Vinschen 2016-03-29 13:41:11 +02:00
parent 660f84b15b
commit 087aca6163
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ initstate(unsigned seed, /* seed for R.N.G. */
* complain about mis-alignment, but you should disregard these messages.
*/
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 type = new_state[0] % MAX_TYPES;