[go] math/rand: update NewSource document

3 views
Skip to first unread message

jiahua wang (Gerrit)

unread,
Sep 27, 2021, 10:54:49 PM9/27/21
to goph...@pubsubhelper.golang.org, jiahua wang, golang-co...@googlegroups.com

jiahua wang has uploaded this change for review.

View Change

math/rand: update NewSource document

Fixes golang/go#44488

Change-Id: I6ebe323408e48564e90b9fcd67cca76306c57c35
---
M src/math/rand/rand.go
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/math/rand/rand.go b/src/math/rand/rand.go
index 13f20ca..35987bb 100644
--- a/src/math/rand/rand.go
+++ b/src/math/rand/rand.go
@@ -40,6 +40,7 @@
// NewSource returns a new pseudo-random Source seeded with the given value.
// Unlike the default Source used by top-level functions, this source is not
// safe for concurrent use by multiple goroutines.
+// NewSource always implements Source64
func NewSource(seed int64) Source {
var rng rngSource
rng.Seed(seed)

To view, visit change 352689. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I6ebe323408e48564e90b9fcd67cca76306c57c35
Gerrit-Change-Number: 352689
Gerrit-PatchSet: 1
Gerrit-Owner: jiahua wang <wjh1...@gmail.com>
Gerrit-MessageType: newchange

Sean Liao (Gerrit)

unread,
6:42 PM (5 hours ago) 6:42 PM
to jiahua wang, goph...@pubsubhelper.golang.org, Joe Tsai, Robert Griesemer, Russ Cox, Josh Bleecher Snyder, Filippo Valsorda, Gopher Robot, golang-co...@googlegroups.com

Sean Liao abandoned this change.

View Change

Abandoned

Sean Liao abandoned this change

Related details

Attention set is empty
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: abandon
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I6ebe323408e48564e90b9fcd67cca76306c57c35
Gerrit-Change-Number: 352689
Gerrit-PatchSet: 1
Gerrit-Owner: jiahua wang <wjh1...@gmail.com>
Gerrit-Reviewer: Joe Tsai <thebroke...@gmail.com>
Gerrit-Reviewer: Robert Griesemer <g...@golang.org>
Gerrit-Reviewer: Russ Cox <r...@golang.org>
Gerrit-CC: Filippo Valsorda <fil...@golang.org>
Gerrit-CC: Gopher Robot <go...@golang.org>
Gerrit-CC: Josh Bleecher Snyder <josh...@gmail.com>
unsatisfied_requirement
satisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages