Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Inject a customisable amount of noise into a stream of bytes

License

NotificationsYou must be signed in to change notification settings

leocassarani/noisy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Noisy is a command-line utility that injects a customisable amount ofrandom noise into a stream of bytes coming from standard input.

Noisy accomplishes this by flipping a user-defined amount (e.g. 25%) ofbits in the input stream, chosen at random. The resulting (noisy) streamis written to standard output.

Installation

As long as you have a working installation of Go, you can usego get:

go get github.com/leocassarani/noisy

Usage

Pipe some text into noisy:

$ echo -n 'Hello World!' | noisy | xxd00000000: cb7d 4c2d 5b99 f55e 5ff8 6435            .}L-[..^_.d5

Use the-rate command-line flag to specify a floating-point numberbetween 0 and 1 representing how many errors you would like. 0 willleave the input stream untouched, while 1 will flip every bit in yourinput. The default value is 0.25.

$ echo 'Hello World!' | noisy -rate 0.05@ello`WkrlD!*

About

Inject a customisable amount of noise into a stream of bytes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp