diff options
author | lvw <lvw@e10066b5-e1e2-0310-b819-94efdf66514b> | 2004-05-28 15:30:48 +0000 |
---|---|---|
committer | lvw <lvw@e10066b5-e1e2-0310-b819-94efdf66514b> | 2004-05-28 15:30:48 +0000 |
commit | 2370a13b7f6512147550e5eec8a773e69d49119b (patch) | |
tree | dcf92a706d71b2c21cebef1969298c761f74de2c /scripts/myhash.pm | |
parent | 616adfc77dc1d08f3bfcd79991a78c6350e4e2f6 (diff) | |
download | vdr-plugin-muggle-2370a13b7f6512147550e5eec8a773e69d49119b.tar.gz vdr-plugin-muggle-2370a13b7f6512147550e5eec8a773e69d49119b.tar.bz2 |
Merged and added import scripts
git-svn-id: https://vdr-muggle.svn.sourceforge.net/svnroot/vdr-muggle/trunk/muggle-plugin@99 e10066b5-e1e2-0310-b819-94efdf66514b
Diffstat (limited to 'scripts/myhash.pm')
-rwxr-xr-x | scripts/myhash.pm | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/scripts/myhash.pm b/scripts/myhash.pm new file mode 100755 index 0000000..5d8f1bd --- /dev/null +++ b/scripts/myhash.pm @@ -0,0 +1,29 @@ +package myhash; + + +################################################## +# +# GiantDisc mp3 Jukebox +# +# © 2000, Rolf Brugger +# +################################################## + +#use lib '/usr/local/bin'; +#BEGIN{;} +#END{;} + + +############################################################ +### +sub addvaltohash{ # gets a current hashval and a new elment + # returns new hashval + my ($hashval,$newelement) = @_; + + return (($hashval << 5) ^ ($hashval >> 27)) ^ $newelement; + # (^ is bitwise EXOR) +} + + +1; +# |