Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
e9131df3
Commit
e9131df3
authored
Nov 11, 2014
by
Brian Tiger Chow
Committed by
Juan Batiz-Benet
Nov 15, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deps(go-random)
fixes #293
https://github.com/jbenet/go-ipfs/issues/293
parent
2cb4e59e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
Godeps/Godeps.json
Godeps/Godeps.json
+1
-1
Godeps/_workspace/src/github.com/jbenet/go-random/lib.go
Godeps/_workspace/src/github.com/jbenet/go-random/lib.go
+4
-4
No files found.
Godeps/Godeps.json
View file @
e9131df3
...
...
@@ -120,7 +120,7 @@
},
{
"ImportPath"
:
"github.com/jbenet/go-random"
,
"Rev"
:
"
e4585173eb8c47eea36c3dbff22f26f3f94d3586
"
"Rev"
:
"
2e83344e7dc7898f94501665af34edd4aa95a013
"
},
{
"ImportPath"
:
"github.com/kr/binarydist"
,
...
...
Godeps/_workspace/src/github.com/jbenet/go-random/lib.go
View file @
e9131df3
...
...
@@ -26,10 +26,10 @@ func WritePseudoRandomBytes(count int64, w io.Writer, seed int64) error {
b
=
b
[
:
bufsize
]
}
var
n
int
64
for
i
:=
int64
(
0
);
i
<
bufsize
;
i
++
{
n
=
randmath
.
Int63
()
for
j
:=
0
;
j
<
8
&&
i
<
bufsize
;
j
++
{
var
n
u
int
32
for
i
:=
int64
(
0
);
i
<
bufsize
;
{
n
=
randmath
.
Uint32
()
for
j
:=
0
;
j
<
4
&&
i
<
bufsize
;
j
++
{
b
[
i
]
=
byte
(
n
&
0xff
)
n
>>=
8
i
++
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment