aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/internal/boring/boring.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2017-08-02 23:25:07 -0400
committerRuss Cox <rsc@golang.org>2017-08-17 15:23:06 +0000
commitfe02ba30f13b0316d3d410062b62e8412e20dbfc (patch)
treea7435a65177d875bd34fea821828e1f4dde599eb /src/crypto/internal/boring/boring.go
parent6e70f88f845d19b5195bdfc1b7bb4da889e7ab5f (diff)
downloadgo-fe02ba30f13b0316d3d410062b62e8412e20dbfc.tar.gz
go-fe02ba30f13b0316d3d410062b62e8412e20dbfc.zip
[dev.boringcrypto] crypto/rand: use BoringCrypto
Change-Id: Ie630eff90f7fee9b359683930aec2daf96c1bdfe Reviewed-on: https://go-review.googlesource.com/55473 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Adam Langley <agl@golang.org>
Diffstat (limited to 'src/crypto/internal/boring/boring.go')
-rw-r--r--src/crypto/internal/boring/boring.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/crypto/internal/boring/boring.go b/src/crypto/internal/boring/boring.go
index 5982a22743..615b1efadc 100644
--- a/src/crypto/internal/boring/boring.go
+++ b/src/crypto/internal/boring/boring.go
@@ -37,3 +37,7 @@ func UnreachableExceptTests() {
panic("boringcrypto: invalid code execution")
}
}
+
+type fail string
+
+func (e fail) Error() string { return "boringcrypto: " + string(e) + " failed" }