Skip to content

Commit

Permalink
Removing copyright sign and adjusting flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Sklyar committed Jan 4, 2016
1 parent fe80b73 commit 6c56cef
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright © 2016, Ventu.io, Oleg Sklyar, contributors
Copyright (c) 2016, Ventu.io, Oleg Sklyar, contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction,
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ implement an algorithm with e.g. more randomness, but with longer Ids and shorte

## License

Copyright © 2016 Ventu.io, Oleg Sklyar, contributors.
Copyright (c) 2016 Ventu.io, Oleg Sklyar, contributors.

Distributed under a MIT style license found in the [LICENSE][license] file.

**[Original algorithm][nodeshortid]:** Copyright © 2015 Dylan Greene, contributors. The same MIT
**[Original algorithm][nodeshortid]:** Copyright (c) 2015 Dylan Greene, contributors. The same MIT
license applies. Many thanks to Dylan for putting together the original node.js library, which
inspired this "port":

**Seed computation:** based on The Central Randomizer 1.3. Copyright © 1997 Paul Houle ([email protected])
**Seed computation:** based on The Central Randomizer 1.3. Copyright (c) 1997 Paul Houle ([email protected])


[go]: https://golang.org
Expand Down
6 changes: 3 additions & 3 deletions shortid.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// Copyright © 2016 Ventu.io, Oleg Sklyar, contributors
// Copyright (c) 2016 Ventu.io, Oleg Sklyar, contributors
// The use of this source code is governed by a MIT style license found in the LICENSE file

// Original algorithm:
// Copyright © 2015 Dylan Greene, contributors: https://github.com/dylang/shortid.
// Copyright (c) 2015 Dylan Greene, contributors: https://github.com/dylang/shortid.
// MIT-license as found in the LICENSE file.

// Seed computation: based on The Central Randomizer 1.3
// Copyright © 1997 Paul Houle ([email protected])
// Copyright (c) 1997 Paul Houle ([email protected])

// Package shortid enables the generation of short, unique, non-sequential and by default URL friendly
// Ids. The package is heavily inspired by the node.js https://github.com/dylang/shortid library.
Expand Down
2 changes: 1 addition & 1 deletion shortid_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2016 Ventu.io, Oleg Sklyar, contributors
// Copyright (c) 2016 Ventu.io, Oleg Sklyar, contributors
// The use of this source code is governed by a MIT style license found in the LICENSE file

package shortid_test
Expand Down
5 changes: 1 addition & 4 deletions shortid_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2016 Ventu.io, Oleg Sklyar, contributors
// Copyright (c) 2016 Ventu.io, Oleg Sklyar, contributors
// The use of this source code is governed by a MIT style license found in the LICENSE file

package shortid_test
Expand Down Expand Up @@ -136,9 +136,6 @@ func TestShortid_onMustGenerate_success(t *testing.T) {
if id := sid.MustGenerate(); len(id) != 9 {
t.Errorf("expected id of length 9, found %v", id)
}
if id := sid.MustGenerate(); len(id) != 10 {
t.Errorf("expected id of length 10, found %v", id)
}
time.Sleep(2 * time.Millisecond)
if id := sid.MustGenerate(); len(id) != 9 {
t.Errorf("expected id of length 9, found %v", id)
Expand Down

0 comments on commit 6c56cef

Please sign in to comment.