1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

random.c: consitify

* random.c (init_by_array): consitify initializing keys.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-05-09 04:27:12 +00:00
parent ad949e8f31
commit 8610bd032a

View file

@ -135,7 +135,7 @@ init_genrand(struct MT *mt, unsigned int s)
/* key_length is its length */
/* slight change for C++, 2004/2/26 */
static void
init_by_array(struct MT *mt, uint32_t init_key[], int key_length)
init_by_array(struct MT *mt, const uint32_t init_key[], int key_length)
{
int i, j, k;
init_genrand(mt, 19650218U);