mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
16 lines
478 B
Java
16 lines
478 B
Java
package com.alibaba.druid.bvt.utils;
|
|
|
|
import junit.framework.TestCase;
|
|
|
|
import com.alibaba.druid.util.ThreadLocalRandom;
|
|
|
|
public class ThreadLocalRandomTest extends TestCase {
|
|
public void test_random() throws Exception {
|
|
ThreadLocalRandom.current().nextBoolean();
|
|
ThreadLocalRandom.current().nextDouble();
|
|
ThreadLocalRandom.current().nextFloat();
|
|
ThreadLocalRandom.current().nextInt();
|
|
ThreadLocalRandom.current().nextLong();
|
|
}
|
|
}
|