[前][次][番号順一覧][スレッド一覧]

ruby-changes:59658

From: Nobuyoshi <ko1@a...>
Date: Thu, 9 Jan 2020 21:43:02 +0900 (JST)
Subject: [ruby-changes:59658] 4c5eac7323 (master): Renamed `init_seed` as `init_hash_salt` too

https://git.ruby-lang.org/ruby.git/commit/?id=4c5eac7323

From 4c5eac73238a203830d43bccf22eee27d242616f Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 9 Jan 2020 21:39:12 +0900
Subject: Renamed `init_seed` as `init_hash_salt` too


diff --git a/random.c b/random.c
index 85e7012..e96c76a 100644
--- a/random.c
+++ b/random.c
@@ -1435,7 +1435,7 @@ static union { https://github.com/ruby/ruby/blob/trunk/random.c#L1435
 } hash_salt;
 
 static void
-init_seed(struct MT *mt)
+init_hash_salt(struct MT *mt)
 {
     int i;
 
@@ -1476,7 +1476,7 @@ Init_RandomSeedCore(void) https://github.com/ruby/ruby/blob/trunk/random.c#L1476
     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));
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]