Using Math.Random() is not a secure way of generating random numbers. They 
cannot withstand cryptographic attacks by hackers.
This is being reported by fortify from swagger-UI.js
Is there a fix for this or a patch or explanation for the issue.



SwaggerUi.Views.ParameterContentTypeView = Backbone.View.extend({
  initialize: function  () {},

  render: function(){
    this.model.parameterContentTypeId = 'pct' + Math.random();
    
$(this.el).html(Handlebars.templates.parameter_content_type(this.model));
    return this;
  }

});


Subhodeep

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to