seehuhn / fortuna Goto Github PK
View Code? Open in Web Editor NEWAn implementation of Ferguson and Schneier's Fortuna random number generator in Go.
Home Page: http://www.seehuhn.de/pages/fortuna
License: GNU General Public License v3.0
An implementation of Ferguson and Schneier's Fortuna random number generator in Go.
Home Page: http://www.seehuhn.de/pages/fortuna
License: GNU General Public License v3.0
I wrote a simple problem, much in the same style as your example but when I call RadomData() I get this panic:
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xa code=0x2 addr=0x0 pc=0x52bc8]
goroutine 16 [running]:
runtime.panic(0x1eece0, 0x33b658)
/usr/local/go/src/pkg/runtime/panic.c:279 +0xc5
github.com/seehuhn/fortuna.(_Accumulator).tryReseeding(0x0, 0x0, 0x0, 0x0)
/Users/andrew/Development/go/src/github.com/seehuhn/fortuna/accumulator.go:173 +0x5f8
github.com/seehuhn/fortuna.(_Accumulator).RandomData(0x0, 0x20, 0x0, 0x0, 0x0)
/Users/andrew/Development/go/src/github.com/seehuhn/fortuna/accumulator.go:203 +0x40
main.randomBytes(0x20, 0x0, 0x0, 0x0, 0x0, 0x0)
Hey, thanks for the lib, looks great
The README says
The argument
seedFileName
is the name of a file where a small amount of randomness can be stored between runs of the program.
What exactly does this mean? Would it be possible to elaborate and give an example of what would make a good seedFile
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.