Coder Social home page Coder Social logo

seehuhn / fortuna Goto Github PK

View Code? Open in Web Editor NEW
41.0 41.0 7.0 87 KB

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

Go 94.61% Python 5.39%

fortuna's People

Contributors

grahamrhay avatar seehuhn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

fortuna's Issues

Crashing

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)

`seedFileName` example

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.