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:
parent
ad949e8f31
commit
8610bd032a
1 changed files with 1 additions and 1 deletions
2
random.c
2
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue