• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Memory usage for RNG

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

i am having the code for random number generation like this:



i want to find out the memory usage of this code. Kindly help
 
Bartender
Posts: 1166
17
Netbeans IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

bashir adil wrote:
i want to find out the memory usage of this code.



Why? What are you going to do with this information?

P.S. The code for class Random is available in the src.zip file that comes with the JDK distribution.
P.P.S. What makes this a 'security' issue?
 
bashir adil
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i need to check out the memory usage of my whole program, but for this piece of code i am confused about itz memory usage.
 
Richard Tookey
Bartender
Posts: 1166
17
Netbeans IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

bashir adil wrote:i need to check out the memory usage of my whole program, but for this piece of code i am confused about itz memory usage.



Sorry but I think you have an impossible task. I'd be surprised if this is the only class you are 'confused about' since your program will likely be using hundreds of classes most being more complex than java.util.Random. What makes java.util.Random more confusing than say the String class or the PrintStream class that you use when using System.out ?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic