summaryrefslogtreecommitdiff
path: root/random.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-09 04:27:12 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-09 04:27:12 (GMT)
commit8610bd032a081febf545176a42697135f57c18f1 (patch)
tree4c814c6bd4d8467047bf74188ff0ad209b91aa63 /random.c
parentad949e8f31ac43a1805716dfb6382bbdaa0d9ec1 (diff)
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
Diffstat (limited to 'random.c')
-rw-r--r--random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/random.c b/random.c
index b5f6c18..a008064 100644
--- a/random.c
+++ b/random.c
@@ -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);