mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 05:11:49 +08:00
fix: coding style and file format for all example.
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
// c1.go
|
||||
package rand
|
||||
|
||||
// #include <stdlib.h>
|
||||
import "C"
|
||||
|
||||
func Random() int {
|
||||
return int(C.random())
|
||||
}
|
||||
|
||||
func Seed(i int) {
|
||||
C.srandom(C.uint(i))
|
||||
}
|
||||
// c1.go
|
||||
package rand
|
||||
|
||||
// #include <stdlib.h>
|
||||
import "C"
|
||||
|
||||
func Random() int {
|
||||
return int(C.random())
|
||||
}
|
||||
|
||||
func Seed(i int) {
|
||||
C.srandom(C.uint(i))
|
||||
}
|
||||
|
Reference in New Issue
Block a user