From 2e35ca6c33cd9c089b6536e9405e2f90a8ec101c Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 7 Oct 2008 12:31:31 -0700 Subject: update code to follow new semicolon rules: * 1. all statements and declarations are terminated by semicolons * 2. semicolons can be omitted at top level. * 3. semicolons can be omitted before and after the closing ) or } * on a list of statements or declarations. /home/rsc/bin/addsemi and then diff+tweak. R=r,gri OCL=16620 CL=16643 --- src/lib/rand.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/rand.go') diff --git a/src/lib/rand.go b/src/lib/rand.go index ac5841147..8619cc48c 100644 --- a/src/lib/rand.go +++ b/src/lib/rand.go @@ -65,7 +65,7 @@ srand(seed int32) for i := -20; i < LEN; i++ { x = seedrand(x); if i >= 0 { - var u int64 + var u int64; u = int64(x) << 20; x = seedrand(x); u ^= int64(x) << 10; @@ -121,7 +121,7 @@ nrand63(n int64) int64 return 0 } max := int64((1<<63)-1 - (1<<63) % uint64(n)); - v := rand63() + v := rand63(); for v > max { v = rand63() } -- cgit v1.2.3