protobuf-go/reflect/prototype
Joe Tsai 492a476312 internal/detrand: new package for deterministically random functionality
The use of math/rand in serialization is to provide some form of instability
to the output to provide a clear signal to the user that the should not
depend on the the property of stability. However, it is reasonable that users
expect the output for these to be deterministic.

As such, add a detrand package that provides deterministic, yet unstable
randomization functionality.

Since this package hashes the binary, it does impose a small initialization cost:
	Benchmark    100000    20712 ns/op    480 B/op    6 allocs/op

Change-Id: I232d0fea1789a4278079837a67ee2f63474a4364
Reviewed-on: https://go-review.googlesource.com/c/151340
Reviewed-by: Herbie Ong <herbie@google.com>
2018-11-27 02:14:04 +00:00
..
go_type.go reflect/prototype: print {Enum,Message,Extension}Type.GoType 2018-11-20 20:02:59 +00:00
name_pure.go go.mod: rename google.golang.org/proto as github.com/golang/protobuf/v2 2018-09-24 16:11:50 +00:00
name_unsafe.go go.mod: rename google.golang.org/proto as github.com/golang/protobuf/v2 2018-09-24 16:11:50 +00:00
placeholder_type.go reflect/protoreflect: add Descriptor.Options method 2018-10-23 23:44:11 +00:00
placeholder.go go.mod: rename google.golang.org/proto as github.com/golang/protobuf/v2 2018-09-24 16:11:50 +00:00
protofile_desc.go reflect/protoreflect: add Descriptor.Options method 2018-10-23 23:44:11 +00:00
protofile_list_gen.go go.mod: rename google.golang.org/proto as github.com/golang/protobuf/v2 2018-09-24 16:11:50 +00:00
protofile_list.go go.mod: rename google.golang.org/proto as github.com/golang/protobuf/v2 2018-09-24 16:11:50 +00:00
protofile_type.go reflect/protoreflect: add FieldDescriptor.DefaultEnumValue method 2018-10-29 15:59:23 +00:00
protofile.go reflect/protoreflect: add Descriptor.Options method 2018-10-23 23:44:11 +00:00
standalone_type.go reflect/protoreflect: add FieldDescriptor.DefaultEnumValue method 2018-10-29 15:59:23 +00:00
standalone.go reflect/prototype: use proto2 syntax for standalone extension fields 2018-10-24 17:35:49 +00:00
stringer.go internal/detrand: new package for deterministically random functionality 2018-11-27 02:14:04 +00:00
type_test.go reflect/protoreflect: add FieldDescriptor.DefaultEnumValue method 2018-10-29 15:59:23 +00:00
validate.go reflect/protoreflect: add Descriptor.Options method 2018-10-23 23:44:11 +00:00