OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgo/] [go/] [crypto/] [rand/] [rand.go] - Blame information for rev 747

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 747 jeremybenn
// Copyright 2010 The Go Authors.  All rights reserved.
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
4
 
5
// Package rand implements a cryptographically secure
6
// pseudorandom number generator.
7
package rand
8
 
9
import "io"
10
 
11
// Reader is a global, shared instance of a cryptographically
12
// strong pseudo-random generator.
13
// On Unix-like systems, Reader reads from /dev/urandom.
14
// On Windows systems, Reader uses the CryptGenRandom API.
15
var Reader io.Reader
16
 
17
// Read is a helper function that calls Reader.Read.
18
func Read(b []byte) (n int, err error) { return Reader.Read(b) }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.