Java Snippet - Using SecureRandom
A better random number generator ```java
import java.security.SecureRandom; ... public static SecureRandom random = null; static { try { random = SecureRandom.getInstance("SHA1PRNG"); random.setSeed( random.generateSeed(256) ); } catch( Exception e ) { e.printStackTrace(); } }
Related Posts
Hadoop: Processing ZIP files in Map/Reduce
Updated ZipFileInputFormat framework for processing thousands of ZIP files in Hadoop with failure tolerance and comprehensive examples
July 06, 2012 • 5 min read
Consuming Twitter streams from Java
Build a Java utility class to consume Twitter Streaming API data for offline analysis in Hadoop with automatic file segmentation
March 12, 2011 • 1 min read
Reading ZIP files from Hadoop Map/Reduce
Custom utility classes to extract and parse ZIP file contents in Hadoop MapReduce jobs using ZipFileInputFormat and ZipFileRecordReader
March 11, 2011 • 2 min read