summaryrefslogtreecommitdiff
path: root/random.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-01-09 21:39:12 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-01-09 21:41:17 +0900
commit4c5eac73238a203830d43bccf22eee27d242616f (patch)
tree22fb21097da3330bab92d64b802ca1e1f1ff0673 /random.c
parent661e07c97e1cc742290d045dc5102e5fbdbae6a1 (diff)
Renamed `init_seed` as `init_hash_salt` too
Diffstat (limited to 'random.c')
-rw-r--r--random.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/random.c b/random.c
index 85e7012..e96c76a 100644
--- a/random.c
+++ b/random.c
@@ -1435,7 +1435,7 @@ static union {
} hash_salt;
static void
-init_seed(struct MT *mt)
+init_hash_salt(struct MT *mt)
{
int i;
@@ -1476,7 +1476,7 @@ Init_RandomSeedCore(void)
fill_random_seed(initial_seed, DEFAULT_SEED_CNT);
init_by_array(&mt, initial_seed, DEFAULT_SEED_CNT);
- init_seed(&mt);
+ init_hash_salt(&mt);
explicit_bzero(initial_seed, DEFAULT_SEED_LEN);
explicit_bzero(&mt, sizeof(mt));