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
28b01dda
Commit
28b01dda
authored
8 years ago
by
Jeromy Johnson
Committed by
GitHub
8 years ago
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3118 from ipfs/deps/rm-randbo
remove randbo dep, its no longer needed
parents
53b927e3
3b3f2d85
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
14 deletions
+9
-14
mfs/mfs_test.go
mfs/mfs_test.go
+9
-9
package.json
package.json
+0
-5
No files found.
mfs/mfs_test.go
View file @
28b01dda
...
...
@@ -13,12 +13,6 @@ import (
"testing"
"time"
"github.com/ipfs/go-ipfs/path"
ds
"gx/ipfs/QmNgqJarToRiq2GBaPJhkmW4B5BxS5B74E1rkGvv2JoaTp/go-datastore"
dssync
"gx/ipfs/QmNgqJarToRiq2GBaPJhkmW4B5BxS5B74E1rkGvv2JoaTp/go-datastore/sync"
randbo
"gx/ipfs/QmYvsG72GsfLgUeSojXArjnU6L4Wmwk7wuAxtNLuyXcc1T/randbo"
"gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
bstore "github.com/ipfs/go-ipfs/blocks/blockstore"
key "github.com/ipfs/go-ipfs/blocks/key"
bserv "github.com/ipfs/go-ipfs/blockservice"
...
...
@@ -26,9 +20,14 @@ import (
importer "github.com/ipfs/go-ipfs/importer"
chunk "github.com/ipfs/go-ipfs/importer/chunk"
dag "github.com/ipfs/go-ipfs/merkledag"
"github.com/ipfs/go-ipfs/path"
ft "github.com/ipfs/go-ipfs/unixfs"
uio "github.com/ipfs/go-ipfs/unixfs/io"
ds "gx/ipfs/QmNgqJarToRiq2GBaPJhkmW4B5BxS5B74E1rkGvv2JoaTp/go-datastore"
dssync "gx/ipfs/QmNgqJarToRiq2GBaPJhkmW4B5BxS5B74E1rkGvv2JoaTp/go-datastore/sync"
u "gx/ipfs/QmZNVWh8LLjAavuQ2JXuFmuYH3C11xo988vSgp7UQrTRj1/go-ipfs-util"
"gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
)
func emptyDirNode() *dag.Node {
...
...
@@ -552,7 +551,8 @@ func actorMakeFile(d *Directory) error {
return err
}
r
:=
io
.
LimitReader
(
randbo
.
New
(),
int64
(
77
*
rand
.
Intn
(
123
)))
rread := rand.New(rand.NewSource(time.Now().UnixNano()))
r := io.LimitReader(rread, int64(77*rand.Intn(123)))
_, err = io.Copy(wfd, r)
if err != nil {
return err
...
...
@@ -646,7 +646,7 @@ func actorWriteFile(d *Directory) error {
size := rand.Intn(1024) + 1
buf := make([]byte, size)
rand
bo
.
New
()
.
Read
(
buf
)
rand.Read(buf)
s, err := fi.Size()
if err != nil {
...
...
@@ -858,7 +858,7 @@ func TestConcurrentReads(t *testing.T) {
d := mkdirP(t, rootdir, path)
buf := make([]byte, 2048)
rand
bo
.
New
()
.
Read
(
buf
)
rand.Read(buf)
fi := fileNodeFromReader(t, ds, bytes.NewReader(buf))
err := d.AddChild("afile", fi)
...
...
This diff is collapsed.
Click to expand it.
package.json
View file @
28b01dda
...
...
@@ -40,11 +40,6 @@
"name"
:
"goprocess"
,
"version"
:
"0.0.0"
},
{
"hash"
:
"QmYvsG72GsfLgUeSojXArjnU6L4Wmwk7wuAxtNLuyXcc1T"
,
"name"
:
"randbo"
,
"version"
:
"0.0.0"
},
{
"hash"
:
"QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV"
,
"name"
:
"gogo-protobuf"
,
...
...
This diff is collapsed.
Click to expand it.
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