summaryrefslogtreecommitdiff
path: root/src/pkg/rand/rand_test.go
AgeCommit message (Collapse)AuthorFilesLines
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý1-3/+3
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-6/+6
2010-03-16gofmt: more consistent formatting of const/var declsRobert Griesemer1-2/+2
- gofmt -w src misc - only manually modified file: src/pkg/go/printer/nodes.go R=rsc CC=golang-dev, r http://codereview.appspot.com/606041
2009-12-15rand: add explicit Int31n to avoid 64-bit divide on 32-bit machinesRuss Cox1-0/+21
use Int31n in Intn when possible. Fixes issue 390. (using 8g) Intn1000 50000000 38 ns/op Int31n1000 50000000 39 ns/op Int63n1000 20000000 114 ns/op R=r CC=golang-dev, skybrian http://codereview.appspot.com/180054
2009-12-151) Change default gofmt default settings forRobert Griesemer1-101/+101
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 4th set of files. R=rsc CC=golang-dev http://codereview.appspot.com/180049
2009-12-09added benchmarks to rand_test.go;Roger Peppe1-0/+15
removed superfluous field name in lockedSource. R=r, rsc http://codereview.appspot.com/170043 Committer: Russ Cox <rsc@golang.org>
2009-11-20gofmt -r 'α[β:len(α)] -> α[β:]' -w src/cmd src/pkgRuss Cox1-6/+6
R=r, gri CC=golang-dev http://codereview.appspot.com/156115
2009-11-09- replaced gofmt expression formatting algorithm withRobert Griesemer1-29/+29
rsc's algorithm - applied gofmt -w misc src - partial CL (last chunk) R=rsc, r http://go/go-review/1024041
2009-11-09remove semis after statements in one-statement statement listsRobert Griesemer1-23/+23
R=rsc, r http://go/go-review/1025029
2009-10-15Define the new Rand and Source types to allow creatingDave Bort1-0/+314
isolated sources of random values. Add normal and exponential distributions. Add some tests for the normal and exponential distributions. R=rsc APPROVED=rsc DELTA=1005 (904 added, 80 deleted, 21 changed) OCL=35501 CL=35779