aboutsummaryrefslogtreecommitdiffstats
path: root/vdslib/src/main/java/com/yahoo/vdslib/distribution/RandomGen.java
blob: 77762f29b96751cc82a03ce1716e3d80131c2c56 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vdslib.distribution;

public class RandomGen extends java.util.Random {

    public RandomGen() {
        super();
    }

    public RandomGen(long seed) {
        super(seed);
    }

    public void setSeed(long seed){
        super.setSeed(seed);
        nextDouble();
    }
}