diff options
Diffstat (limited to 'doc/progs/cgo1.go')
-rw-r--r-- | doc/progs/cgo1.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/progs/cgo1.go b/doc/progs/cgo1.go index 1a2dc6c96..805fe3c9c 100644 --- a/doc/progs/cgo1.go +++ b/doc/progs/cgo1.go @@ -12,12 +12,12 @@ import "C" // STOP OMIT func Random() int { - return int(C.random()) + return int(C.rand()) } // STOP OMIT func Seed(i int) { - C.srandom(C.uint(i)) + C.srand(C.uint(i)) } // END OMIT |