{"id":63756,"library":"safe-thread-local-random","title":"Safe Thread Local Random","description":"Palantir open source project providing a safe thread-local random number generator.","status":"active","version":"0.7.0","language":"java","source_language":null,"source_url":"https://github.com/palantir/safe-thread-local-random","tags":["palantir","random","thread-local","safe","utility"],"install":[{"cmd":"<dependency>\n  <groupId>com.palantir.safethreadlocalrandom</groupId>\n  <artifactId>safe-thread-local-random</artifactId>\n  <version>0.7.0</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'com.palantir.safethreadlocalrandom:safe-thread-local-random:0.7.0'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"SafeThreadLocalRandom","correct":"com.palantir.safethreadlocalrandom.SafeThreadLocalRandom"}],"quickstart":{"code":"import com.palantir.safethreadlocalrandom.SafeThreadLocalRandom;\n\npublic class Example {\n    public static void main(String[] args) {\n        SafeThreadLocalRandom random = SafeThreadLocalRandom.get();\n        System.out.println(random.nextInt());\n    }\n}","lang":"java","description":"Minimal example using SafeThreadLocalRandom to generate a random integer."},"warnings":[],"env_vars":null,"search_vec":"'generat':17 'local':3,14,22 'number':16 'open':6 'palantir':5,18 'project':8 'provid':9 'random':4,15,19 'safe':1,11,23 'sourc':7 'thread':2,13,21 'thread-loc':12,20 'util':24","created_at":"2026-06-17T16:47:32.091602+00:00","updated_at":"2026-06-17T16:47:32.091602+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/palantir/safe-thread-local-random","github":"https://github.com/palantir/safe-thread-local-random","docs":"https://appdoc.app/artifact/com.palantir.safethreadlocalrandom/safe-thread-local-random/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}