Skip to content

A small and fast package that generates a dummy file of the desired length containing random numbers.

License

Notifications You must be signed in to change notification settings

anurag1004/randnumsplash

Repository files navigation

Library Puzzle Icon

randnumsplash

GitHub release codecov GoDoc Continuous Integration License
A small and fast package that generates a dummy file of the desired length containing random numbers."

Installation

go get -u github.com/anurag0608/randnumsplash

Usage

import "github.com/anurag0608/randnumsplash"
// GenerateRandFile(targetSizeInBytes, folder_location, fileName, loggingEnabled)
err := randnumsplash.GenerateRandFile(1024*1024, folder_location, "rand.txt", true) // loggingEnable

Sample output (loggingEnabled = true)

Target file size: 535822336 Bytes | 511.00 Mb
Starting dumping random numbers 🤖
📂 100% |███████████████| (511/511 MB, 21 MB/s)
Done✅
Took ✨ 24.31s

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

Apache License

About

A small and fast package that generates a dummy file of the desired length containing random numbers.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages