Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go 1.22 #431

Merged
merged 6 commits into from
Aug 30, 2024
Merged

Go 1.22 #431

merged 6 commits into from
Aug 30, 2024

Conversation

roman-khimov
Copy link
Member

No description provided.

It's not needed, some static value works fine as well.

Signed-off-by: Roman Khimov <[email protected]>
Most of the time we don't need that much of randomness.

Signed-off-by: Roman Khimov <[email protected]>
"testing"

"github.com/nspcc-dev/neo-go/pkg/neotest"
"github.com/nspcc-dev/neo-go/pkg/vm/stackitem"
)

func randomBytes(n int) []byte {
if n < 8 {
panic("too small request")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unexpected restriction, comment at least?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll see it immediately if you're to hit it, then you can write a bit more fancy code to deal with it.

@roman-khimov roman-khimov merged commit 72baaa1 into master Aug 30, 2024
8 checks passed
@roman-khimov roman-khimov deleted the go-1.22 branch August 30, 2024 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants