Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Unified Diff: filter/dscache/dscache.go

Issue 2354303002: dscache: Use math/rand's Read for nonce. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | filter/dscache/support.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: filter/dscache/dscache.go
diff --git a/filter/dscache/dscache.go b/filter/dscache/dscache.go
index 28f99d878dc6fdb92e96cf263124649748b3e8e2..4bfe6ba7270b1c8cd310ec9e9e35002fcef084aa 100644
--- a/filter/dscache/dscache.go
+++ b/filter/dscache/dscache.go
@@ -83,8 +83,8 @@ const (
// expiration time (in seconds) for an entity type.
CacheExpirationMeta = "dscache.expiration"
- // NonceUint32s is the number of 32 bit uints to use in the 'lock' nonce.
- NonceUint32s = 2
+ // NonceBytes is the number of bytes to use in the 'lock' nonce.
+ NonceBytes = 8
// GlobalEnabledCheckInterval is how frequently IsGloballyEnabled should check
// the globalEnabled datastore entry.
« no previous file with comments | « no previous file | filter/dscache/support.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698