diff --git a/gensim/models/word2vec.py b/gensim/models/word2vec.py index 3c4c32efa5..c025bd3c85 100755 --- a/gensim/models/word2vec.py +++ b/gensim/models/word2vec.py @@ -1691,7 +1691,7 @@ def prepare_weights(self, hs, negative, wv, update=False, vocabulary=None): def seeded_vector(self, seed_string, vector_size): """Get a random vector (but deterministic by seed_string).""" # Note: built-in hash() may vary by Python version or even (in Py3.x) per launch - once = random.RandomState(self.hashfxn(seed_string) & 0xffffffff) + once = random.SFC64(self.hashfxn(seed_string) & 0xffffffff) return (once.rand(vector_size) - 0.5) / vector_size def reset_weights(self, hs, negative, wv):