]> Cypherpunks repositories - gostls13.git/commit
crypto/rand: replace shift with constant
authorJohan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Sat, 4 Feb 2023 05:14:05 +0000 (21:14 -0800)
committerGopher Robot <gobot@golang.org>
Mon, 6 Feb 2023 18:03:38 +0000 (18:03 +0000)
commitbf5ad8e491b17ac89644ad8a5c1f51db3b2264b1
tree97fcf71905a08419aaeefcffb6260b5d617d4e60
parentbf8d142b4ebe9f84e75b20a87d292d2d6ec13fab
crypto/rand: replace shift with constant

It was mentioned after CL 463993 was merged that it
is uncommon to use shifts for numbers other than
powers of ten. Replace the shift with a base 10 constant.

Change-Id: I11c90128740109a59add40ed7b680f7bcc9715ad
Reviewed-on: https://go-review.googlesource.com/c/go/+/465275
Auto-Submit: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Run-TryBot: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Auto-Submit: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/crypto/rand/rand_js.go