summaryrefslogtreecommitdiff
path: root/src/de/danoeh/antennapod/util/NumberGenerator.java
blob: ff89180e18521ac6758fd66d4c77c8b154c435c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package de.danoeh.antennapod.util;


/**Utility class for creating numbers.*/
public final class NumberGenerator {
    /** Class shall not be instantiated.*/
    private NumberGenerator() {
    }

    /**Logging tag.*/
    private static final String TAG = "NumberGenerator";

    /** Takes a string and generates a random value out of
     * the hash-value of that string.
     *  @param strSeed The string to take for the return value
     *  @return The generated random value
     * */
    public static long generateLong(final String strSeed) {
        return strSeed.hashCode();
    }
}