diff options
| author | Mateusz Poliwczak <mpoliwczak34@gmail.com> | 2026-02-20 10:56:04 +0100 |
|---|---|---|
| committer | Mateusz Poliwczak <mpoliwczak34@gmail.com> | 2026-02-23 12:41:28 -0800 |
| commit | fe080173033908f0f69b2dbf4a7ba1eaaea194bf (patch) | |
| tree | 332e08d7efd69653f65f4450645e7ccb10766b25 /src/runtime | |
| parent | 4e693d1ec52c86b262ac23f0d6cee6b60fef4fb0 (diff) | |
| download | go-fe080173033908f0f69b2dbf4a7ba1eaaea194bf.tar.xz | |
crypto/rand: remove exported fields in the default Reader
Uses a clever trick with embeddeding such that, the Reader is 0-byte
and does not have any exported fields.
This change is not really a must, but I think it is better not to have
any exported fields that could be accessed with reflect or such.
Change-Id: Ib2e0b71d1e56b74a608601c98a81c8646a6a6964
Reviewed-on: https://go-review.googlesource.com/c/go/+/747460
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Roland Shoemaker <roland@golang.org>
Diffstat (limited to 'src/runtime')
0 files changed, 0 insertions, 0 deletions
