blob: 1a2dc6c964d806a1ac5c2b81e51e5f53a4a1b74b [file] [log] [blame]
Shenghou Ma5b7562d2012-09-03 03:49:03 +08001// skip
2
Francisco Souza60b98d62012-03-13 09:07:37 +11003// Copyright 2012 The Go Authors. All rights reserved.
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file.
6package rand
7
Francisco Souza60b98d62012-03-13 09:07:37 +11008/*
9#include <stdlib.h>
10*/
11import "C"
12
13// STOP OMIT
14func Random() int {
15 return int(C.random())
16}
17
18// STOP OMIT
19func Seed(i int) {
20 C.srandom(C.uint(i))
21}
22
23// END OMIT