Skip to content

Releases: wangyi-fudan/wyhash

wyhash_final4

06 Feb 02:24
ea3b25e
Compare
Choose a tag to compare
completely solved BadSeeds

The final release

23 Apr 11:41
991aa3d
Compare
Choose a tag to compare
Merge pull request #111 from oertl/master

add reference to Java implementation

wyhash version alpha

06 Mar 20:09
5dde450
Compare
Choose a tag to compare
wyhash_alpha

Update README.md

wyhash version 5

15 Feb 08:19
e476c59
Compare
Choose a tag to compare
wyhash_v5

Add files via upload

wyhash version 4

03 Feb 05:57
07cb2d4
Compare
Choose a tag to compare
wyhash("",0)=bc98efd7661a7a1
wyhash("a",1)=99782e84a7cee30
wyhash("abc",2)=973ed17dfbe006d7
wyhash("message digest",3)=c0189aa4012331f5
wyhash("abcdefghijklmnopqrstuvwxyz",4)=da133f940b62e516
wyhash("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",5)=e062dfda99413626
wyhash("12345678901234567890123456789012345678901234567890123456789012345678901234567890",6)=77092dd38803d1fa

wyhash&wyrand version 3

12 Dec 02:29
9f68c1b
Compare
Choose a tag to compare

wyhash & wyrand release version 1

07 Apr 00:14
e1e1b50
Compare
Choose a tag to compare

wyhash test vectors:

wyhash("",0)=f961f936e29c9345
wyhash("a",1)=6dc395f88b363baa
wyhash("abc",2)=3bc9d7844798ddaa
wyhash("message digest",3)=b31238dc2c500cd3
wyhash("abcdefghijklmnopqrstuvwxyz",4)=ea0f542c58cddfe4
wyhash("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",5)=1799aca591fe73b4
wyhash("12345678901234567890123456789012345678901234567890123456789012345678901234567890",6)=7f0d02f53d64c1f9

wyrand code:

inline	unsigned long long	wyrand(unsigned long long	*seed){    
	*seed+=0xa0761d6478bd642full;    
	__uint128_t	t=(__uint128_t)(*seed^0xe7037ed1a0b428dbull)*(*seed);    
	return	(t>>64)^t;    
}