Giter Club home page Giter Club logo

Comments (2)

trcrsired avatar trcrsired commented on July 1, 2024

我需要生成大量的伪随机字节。并不需要64位的这种比如说。

from wyhash.

thynson avatar thynson commented on July 1, 2024

这里只有四个种子。是否可以给更多,比如4kb的种子。

wyhash只需要一个种子(Seed),你说的“4个种子”是否指的是secret?
Secret 的内容并不能被任意填充,而是必须满足一定的要求,否则会严重影响hash的质量。
头文件里给了secret的生成函数make_secret,你应该调用这个函数来生成自定义的secret。

我需要生成大量的伪随机字节。并不需要64位的这种比如说。

无法理解你向表达什么意思,如果你需要生成大量的为随机字节,请使用伪随机数发生器wyrand或者其他的伪随机数算法如xoroshiro或pcg等等。而不是使用一个hash函数。

from wyhash.

Related Issues (20)

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.