Skip to content

Commit 82fc03f

Browse files
mknyszekgopherbot
authored andcommitted
Revert "math/rand/v2: add ChaCha8"
This reverts commit 6382893. Reason for revert: Causes failures on big endian platforms and riscv64. Possibly a bug in the generic implementation. For golang#64284. For golang#64285. Change-Id: Ic1bb8533d9641fae28d0337b36d434b9a575cd7e Reviewed-on: https://go-review.googlesource.com/c/go/+/543895 Reviewed-by: Heschi Kreinick <heschi@google.com> Auto-Submit: Michael Knyszek <mknyszek@google.com> TryBot-Bypass: Michael Knyszek <mknyszek@google.com>
1 parent 4a90cdb commit 82fc03f

File tree

11 files changed

+3
-1479
lines changed

11 files changed

+3
-1479
lines changed

api/next/61716.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ pkg math/rand/v2, func Int64N(int64) int64 #61716
99
pkg math/rand/v2, func IntN(int) int #61716
1010
pkg math/rand/v2, func N[$0 intType]($0) $0 #61716
1111
pkg math/rand/v2, func New(Source) *Rand #61716
12-
pkg math/rand/v2, func NewChaCha8([32]uint8) *ChaCha8 #61716
1312
pkg math/rand/v2, func NewPCG(uint64, uint64) *PCG #61716
1413
pkg math/rand/v2, func NewZipf(*Rand, float64, float64, uint64) *Zipf #61716
1514
pkg math/rand/v2, func NormFloat64() float64 #61716
@@ -20,10 +19,6 @@ pkg math/rand/v2, func Uint32N(uint32) uint32 #61716
2019
pkg math/rand/v2, func Uint64() uint64 #61716
2120
pkg math/rand/v2, func Uint64N(uint64) uint64 #61716
2221
pkg math/rand/v2, func UintN(uint) uint #61716
23-
pkg math/rand/v2, method (*ChaCha8) MarshalBinary() ([]uint8, error) #61716
24-
pkg math/rand/v2, method (*ChaCha8) Seed([32]uint8) #61716
25-
pkg math/rand/v2, method (*ChaCha8) Uint64() uint64 #61716
26-
pkg math/rand/v2, method (*ChaCha8) UnmarshalBinary([]uint8) error #61716
2722
pkg math/rand/v2, method (*PCG) MarshalBinary() ([]uint8, error) #61716
2823
pkg math/rand/v2, method (*PCG) Seed(uint64, uint64) #61716
2924
pkg math/rand/v2, method (*PCG) Uint64() uint64 #61716
@@ -46,7 +41,6 @@ pkg math/rand/v2, method (*Rand) Uint64() uint64 #61716
4641
pkg math/rand/v2, method (*Rand) Uint64N(uint64) uint64 #61716
4742
pkg math/rand/v2, method (*Rand) UintN(uint) uint #61716
4843
pkg math/rand/v2, method (*Zipf) Uint64() uint64 #61716
49-
pkg math/rand/v2, type ChaCha8 struct #61716
5044
pkg math/rand/v2, type PCG struct #61716
5145
pkg math/rand/v2, type Rand struct #61716
5246
pkg math/rand/v2, type Source interface { Uint64 } #61716

src/go/build/deps_test.go

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,10 @@ var depsRules = `
5555
5656
unsafe < maps;
5757
58-
unsafe < internal/chacha8rand;
59-
6058
# RUNTIME is the core runtime group of packages, all of them very light-weight.
61-
internal/abi,
62-
internal/chacha8rand,
63-
internal/coverage/rtcov,
64-
internal/cpu,
65-
internal/goarch,
66-
internal/godebugs,
67-
internal/goexperiment,
68-
internal/goos
59+
internal/abi, internal/cpu, internal/goarch,
60+
internal/coverage/rtcov, internal/godebugs, internal/goexperiment,
61+
internal/goos, unsafe
6962
< internal/bytealg
7063
< internal/itoa
7164
< internal/unsafeheader

src/internal/chacha8rand/chacha8.go

Lines changed: 0 additions & 175 deletions
This file was deleted.

0 commit comments

Comments
 (0)